-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ReceivingContextConsumerCallback before receiving a message.- Since:
- 1.11.0
- See Also:
RMQConnectionFactory.setSendingContextConsumer(SendingContextConsumer),SendingContext
-
-
Field Summary
Fields Modifier and Type Field Description static ReceivingContextConsumerNO_OP
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(ReceivingContext receivingContext)Called before receiving a message.default ReceivingContextConsumerandThen(ReceivingContextConsumer after)Same semantics asConsumer.andThen(Consumer).
-
-
-
Field Detail
-
NO_OP
static final ReceivingContextConsumer NO_OP
-
-
Method Detail
-
accept
void accept(ReceivingContext receivingContext) throws jakarta.jms.JMSException
Called before receiving a message.Can be used to customize the message before it is dispatched to application code.
- Parameters:
receivingContext-- Throws:
jakarta.jms.JMSException
-
andThen
default ReceivingContextConsumer andThen(ReceivingContextConsumer after)
Same semantics asConsumer.andThen(Consumer).- Parameters:
after- the operation to perform after this operation- Returns:
- a composed
ReceivingContextConsumerthat performs in sequence this operation followed by theafteroperation - Throws:
java.lang.NullPointerException- ifafteris null
-
-