Package org.apache.camel.spi
Interface Condition
-
public interface ConditionA condition to define when a givenExchangematches when is being routed. Is used by theDebuggerto applyConditions toBreakpoints to define rules when the breakpoints should match.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatchEvent(Exchange exchange, CamelEvent.ExchangeEvent event)Does the condition matchbooleanmatchProcess(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
-
-