Package org.apache.camel.spi
Interface Breakpoint
public interface Breakpoint
Breakpoint are used by the Debugger API.
This allows you to register Breakpoints to the Debugger and
have those breakpoints activated when their Conditions match.
If any exceptions is thrown from the callback methods then the Debugger will catch and
log those at WARN level and continue. This ensures Camel can continue to route the message without having
breakpoints causing issues.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumState of the breakpoint as either active or suspended. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()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).getState()Gets the state of this breakvoidonEvent(Exchange exchange, CamelEvent.ExchangeEvent event, NamedNode definition) voidsuspend()Suspend this breakpoint
-
Method Details
-
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
Callback invoked when the breakpoint was hit and theExchangeis about to be processed (before). -
afterProcess
Callback invoked when the breakpoint was hit and theExchangehas been processed (after). -
onEvent
- 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:
-