Package org.citrusframework.message
Interface MessageSelector
- All Known Implementing Classes:
MessageSelector.AllAcceptingMessageSelector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classSpecial message selector accepts all messages on queue.static interfaceFactory capable of creating a message selector from key value pairs. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<String,MessageSelector.MessageSelectorFactory> static final org.slf4j.LoggerLoggerstatic final StringMessage selector resource lookup pathstatic final TypeResolverType resolver to find custom message selectors on classpath via resource path lookup -
Method Summary
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
RESOURCE_PATH
Message selector resource lookup path- See Also:
-
TYPE_RESOLVER
Type resolver to find custom message selectors on classpath via resource path lookup -
factories
-
-
Method Details
-
lookup
Resolves all available selectors from resource path lookup. Scans classpath for validator meta information and instantiates those selectors.- Returns:
-
accept
Checks weather this selector should accept given message or not. When accepting the message the selective consumer is provided with the message otherwise the message is skipped for this consumer.- Parameters:
message- the message to check- Returns:
- true if the message will be accepted, false otherwise.
-