@Experimental public final class PushConsumerChainImpl extends java.lang.Object implements PushConsumerChain
Uses a PushConsumerContext object for tracking the processed state.
| Modifier and Type | Field and Description |
|---|---|
static PushConsumer |
PUBSUB_CONSUMER
PushConsumer that marks pub/sub related events to be propagated to the caller.
|
| Modifier and Type | Method and Description |
|---|---|
PushConsumerChain |
add(PushConsumer consumer)
Add a consumer to the end of the chain.
|
java.util.List<PushConsumer> |
getConsumers()
Return an unmodifiable list of consumers in the chain.
|
static PushConsumerChainImpl |
of(PushConsumer... consumers)
Create a chain with the specified consumers.
|
PushMessage |
process(PushMessage message)
Process the push message
Returning
null means the message was consumed. |
public static final PushConsumer PUBSUB_CONSUMER
NOTE: If a new pub/sub push type is added to PushMessageTypes, the switch in
isPubSubType(byte[]) must be updated. PushConsumerChainImplTest discovers
pub/sub constants reflectively and will fail until the new type is handled here.
public static PushConsumerChainImpl of(PushConsumer... consumers)
consumers - The consumers to add to the chainpublic PushConsumerChain add(PushConsumer consumer)
consumer - The consumer to addpublic java.util.List<PushConsumer> getConsumers()
getConsumers in interface PushConsumerChainpublic PushMessage process(PushMessage message)
PushConsumerChain
Returning null means the message was consumed.
process in interface PushConsumerChainmessage - message to processCopyright © 2026. All rights reserved.