@FunctionalInterface
public interface SendingContextConsumer
RMQConnectionFactory.setSendingContextConsumer(SendingContextConsumer),
SendingContext| Modifier and Type | Method and Description |
|---|---|
void |
accept(SendingContext sendingContext)
Called before sending a message.
|
default SendingContextConsumer |
andThen(SendingContextConsumer after)
Same semantics as
Consumer.andThen(Consumer). |
void accept(SendingContext sendingContext) throws javax.jms.JMSException
Can be used to customize the message or the destination before the message is actually sent.
sendingContext - javax.jms.JMSExceptiondefault SendingContextConsumer andThen(SendingContextConsumer after)
Consumer.andThen(Consumer).after - the operation to perform after this operationSendingContextConsumer that performs in sequence this
operation followed by the after operationjava.lang.NullPointerException - if after is nullCopyright © 2022. All rights reserved.