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.

@FunctionalInterface public interface MessageSelector
Author:
Christoph Deppisch
  • Field Details

  • Method Details

    • lookup

      Resolves all available selectors from resource path lookup. Scans classpath for validator meta information and instantiates those selectors.
      Returns:
    • accept

      boolean accept(Message message)
      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.