Package org.apache.camel.spi
Interface Breakpoint
public interface Breakpoint
Breakpoint
are used by the Debugger
API.
This allows you to register Breakpoint
s to the Debugger
and
have those breakpoints activated when their Condition
s 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 enum
State of the breakpoint as either active or suspended. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates this breakpointvoid
afterProcess
(Exchange exchange, Processor processor, NamedNode definition, long timeTaken) Callback invoked when the breakpoint was hit and theExchange
has been processed (after).void
beforeProcess
(Exchange exchange, Processor processor, NamedNode definition) Callback invoked when the breakpoint was hit and theExchange
is about to be processed (before).getState()
Gets the state of this breakvoid
onEvent
(Exchange exchange, CamelEvent.ExchangeEvent event, NamedNode definition) void
suspend()
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 theExchange
is about to be processed (before). -
afterProcess
Callback invoked when the breakpoint was hit and theExchange
has been processed (after). -
onEvent
- Parameters:
exchange
- theExchange
event
- the event (instance ofCamelEvent.ExchangeEvent
definition
- theNamedNode
definition of the last processor executed, may be null if not possible to resolve from tracing- See Also:
-