Package org.apache.camel
Interface Predicate
-
- All Known Subinterfaces:
BinaryPredicate
public interface Predicate
Evaluates a binary predicate on the message exchange.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
init(CamelContext context)
Initialize the predicate with the given camel contextboolean
matches(Exchange exchange)
Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate
-
-
-
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
-
-