Interface Predicate

  • All Known Subinterfaces:
    BinaryPredicate

    public interface Predicate
    Evaluates a binary predicate on the message exchange.
    • Method Detail

      • matches

        boolean matches​(Exchange exchange)
        Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate
        Parameters:
        exchange - the message exchange
        Returns:
        true if the predicate matches
      • init

        default void init​(CamelContext context)
        Initialize the predicate with the given camel context