Package org.citrusframework.messaging
Interface SelectiveConsumer
- All Superinterfaces:
Consumer
- All Known Subinterfaces:
ReplyConsumer
- All Known Implementing Classes:
AbstractSelectiveMessageConsumer
Consumer implementation able to select messages available on a message destination. Selection is done via one to many
selection key-value pairs usually on the message header.
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Method Summary
Modifier and TypeMethodDescriptionreceive(String selector, TestContext context) Receive message with a message selector and default timeout.receive(String selector, TestContext context, long timeout) Receive message with a message selector and a receive timeout.
-
Method Details
-
receive
Receive message with a message selector and default timeout.- Parameters:
selector-context-- Returns:
-
receive
Receive message with a message selector and a receive timeout.- Parameters:
selector-context-timeout-- Returns:
-