@Experimental public class PushConsumerContext extends java.lang.Object
Used by PushConsumerChainImpl to inspect and control message processing. The
PushConsumerContext object is created for each push message and passed to all registered
PushConsumer's.
propagate()drop()
to| Constructor and Description |
|---|
PushConsumerContext(PushMessage message) |
| Modifier and Type | Method and Description |
|---|---|
void |
drop()
Set whether the message should be dropped, it is not returned to caller or passed to following
consumers.
|
PushMessage |
getMessage()
Get the push message being processed.
|
void |
propagate()
Set whether the message should be returned to the caller.
|
boolean |
shouldDrop()
Check if the message should be dropped and not processed further.
|
boolean |
shouldPropagate()
Check if the message should be returned to the caller.
|
public PushConsumerContext(PushMessage message)
public PushMessage getMessage()
public boolean shouldPropagate()
public void propagate()
public void drop()
public boolean shouldDrop()
Copyright © 2026. All rights reserved.