Package org.apache.camel.spi
Interface Condition
-
public interface Condition
A condition to define when a givenExchange
matches when is being routed. Is used by theDebugger
to applyCondition
s toBreakpoint
s to define rules when the breakpoints should match.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matchEvent(Exchange exchange, CamelEvent.ExchangeEvent event)
Does the condition matchboolean
matchProcess(Exchange exchange, Processor processor, NamedNode definition)
Does the condition match
-
-
-
Method Detail
-
matchProcess
boolean matchProcess(Exchange exchange, Processor processor, NamedNode definition)
Does the condition match
-
matchEvent
boolean matchEvent(Exchange exchange, CamelEvent.ExchangeEvent event)
Does the condition match- Parameters:
exchange
- the exchangeevent
- the event (instance ofCamelEvent.ExchangeEvent
- Returns:
- true to match, false otherwise
- See Also:
CamelEvent.ExchangeEvent
-
-