Package org.apache.camel.spi
Interface Breakpoint
-
public interface Breakpoint
Breakpoint
are used by theDebugger
API. This allows you to registerBreakpoint
s to theDebugger
and have those breakpoints activated when theirCondition
s match. If any exceptions is thrown from the callback methods then theDebugger
will 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 class
Breakpoint.State
State of the breakpoint as either active or suspended.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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).Breakpoint.State
getState()
Gets the state of this breakvoid
onEvent(Exchange exchange, CamelEvent.ExchangeEvent event, NamedNode definition)
void
suspend()
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 theExchange
is about to be processed (before).
-
afterProcess
void afterProcess(Exchange exchange, Processor processor, NamedNode definition, long timeTaken)
Callback invoked when the breakpoint was hit and theExchange
has been processed (after).
-
onEvent
void onEvent(Exchange exchange, CamelEvent.ExchangeEvent event, NamedNode definition)
- 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:
CamelEvent.ExchangeEvent
-
-