org.apache.camel.spi
Interface Condition

All Known Implementing Classes:
ConditionSupport

public interface Condition

A condition to define when a given Exchange matches when is being routed.

Is used by the Debugger to apply Conditions to Breakpoints to define rules when the breakpoints should match.

Version:

Method Summary
 boolean matchEvent(Exchange exchange, EventObject event)
          Does the condition match
 boolean matchProcess(Exchange exchange, Processor processor, ProcessorDefinition<?> definition)
          Does the condition match
 

Method Detail

matchProcess

boolean matchProcess(Exchange exchange,
                     Processor processor,
                     ProcessorDefinition<?> definition)
Does the condition match

Parameters:
exchange - the exchange
processor - the Processor
definition - the present location in the route where the Exchange is located at
Returns:
true to match, false otherwise

matchEvent

boolean matchEvent(Exchange exchange,
                   EventObject event)
Does the condition match

Parameters:
exchange - the exchange
event - the event (instance of AbstractExchangeEvent
Returns:
true to match, false otherwise
See Also:
AbstractExchangeEvent


Apache CAMEL