Package de.otto.synapse.consumer
Class MethodInvokingMessageConsumer<T>
java.lang.Object
de.otto.synapse.consumer.MethodInvokingMessageConsumer<T>
- Type Parameters:
T- The expected type of the message's payload
- All Implemented Interfaces:
MessageConsumer<T>,Consumer<Message<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the pattern ofMessage.getKey()() message keys} accepted by this consumer.Returns the expected payload type ofmessagesconsumed by this MessageConsumer.
-
Constructor Details
-
MethodInvokingMessageConsumer
-
-
Method Details
-
payloadType
Returns the expected payload type ofmessagesconsumed by this MessageConsumer.- Specified by:
payloadTypein interfaceMessageConsumer<T>- Returns:
- payload type
-
keyPattern
Returns the pattern ofMessage.getKey()() message keys} accepted by this consumer.- Specified by:
keyPatternin interfaceMessageConsumer<T>- Returns:
- Pattern
-
accept
-