@FunctionalInterface
public interface ReceivingContextConsumer
RMQConnectionFactory.setSendingContextConsumer(SendingContextConsumer),
SendingContext| Modifier and Type | Field and Description |
|---|---|
static ReceivingContextConsumer |
NO_OP |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ReceivingContext receivingContext)
Called before receiving a message.
|
default ReceivingContextConsumer |
andThen(ReceivingContextConsumer after)
Same semantics as
Consumer.andThen(Consumer). |
static final ReceivingContextConsumer NO_OP
void accept(ReceivingContext receivingContext) throws javax.jms.JMSException
Can be used to customize the message before it is dispatched to application code.
receivingContext - javax.jms.JMSExceptiondefault ReceivingContextConsumer andThen(ReceivingContextConsumer after)
Consumer.andThen(Consumer).after - the operation to perform after this operationReceivingContextConsumer that performs in sequence this
operation followed by the after operationjava.lang.NullPointerException - if after is nullCopyright © 2023. All rights reserved.