Class MessageSelector.AllAcceptingMessageSelector

java.lang.Object
org.citrusframework.message.MessageSelector.AllAcceptingMessageSelector
All Implemented Interfaces:
MessageSelector
Enclosing interface:
MessageSelector

public static final class MessageSelector.AllAcceptingMessageSelector extends Object implements MessageSelector
Special message selector accepts all messages on queue.
  • Constructor Details

    • AllAcceptingMessageSelector

      public AllAcceptingMessageSelector()
  • Method Details

    • accept

      public boolean accept(Message message)
      Description copied from interface: MessageSelector
      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.
      Specified by:
      accept in interface MessageSelector
      Parameters:
      message - the message to check
      Returns:
      true if the message will be accepted, false otherwise.