Package org.apache.camel.spi
Interface Breakpoint
-
public interface BreakpointBreakpointare used by theDebuggerAPI. This allows you to registerBreakpoints to theDebuggerand have those breakpoints activated when theirConditions match. If any exceptions is thrown from the callback methods then theDebuggerwill catch and log those at WARN level and continue. This ensures Camel can continue to route the message without having breakpoints causing issues.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBreakpoint.StateState of the breakpoint as either active or suspended.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates this breakpointvoidafterProcess(Exchange exchange, Processor processor, NamedNode definition, long timeTaken)Callback invoked when the breakpoint was hit and theExchangehas been processed (after).voidbeforeProcess(Exchange exchange, Processor processor, NamedNode definition)Callback invoked when the breakpoint was hit and theExchangeis about to be processed (before).Breakpoint.StategetState()Gets the state of this breakvoidonEvent(Exchange exchange, CamelEvent.ExchangeEvent event, NamedNode definition)voidsuspend()Suspend this breakpoint
-
-
-
Method Detail
-
getState
Breakpoint.State getState()
Gets the state of this break- Returns:
- the state
-
suspend
void suspend()
Suspend this breakpoint
-
activate
void activate()
Activates this breakpoint
-
beforeProcess
void beforeProcess(Exchange exchange, Processor processor, NamedNode definition)
Callback invoked when the breakpoint was hit and theExchangeis about to be processed (before).
-
afterProcess
void afterProcess(Exchange exchange, Processor processor, NamedNode definition, long timeTaken)
Callback invoked when the breakpoint was hit and theExchangehas been processed (after).
-
onEvent
void onEvent(Exchange exchange, CamelEvent.ExchangeEvent event, NamedNode definition)
- Parameters:
exchange- theExchangeevent- the event (instance ofCamelEvent.ExchangeEventdefinition- theNamedNodedefinition of the last processor executed, may be null if not possible to resolve from tracing- See Also:
CamelEvent.ExchangeEvent
-
-