|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Breakpoint
Breakpoint
are used by the Debugger
API.
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.
Debugger
,
Condition
Nested Class Summary | |
---|---|
static class |
Breakpoint.State
|
Method Summary | |
---|---|
void |
activate()
Activates this breakpoint |
void |
afterProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition,
long timeTaken)
Callback invoked when the breakpoint was hit and the Exchange has been processed (after). |
void |
beforeProcess(Exchange exchange,
Processor processor,
ProcessorDefinition definition)
Callback invoked when the breakpoint was hit and the Exchange is about to be processed (before). |
Breakpoint.State |
getState()
Gets the state of this break |
void |
onEvent(Exchange exchange,
EventObject event,
ProcessorDefinition definition)
Callback invoked when the breakpoint was hit and any of the Exchange event s occurred. |
void |
suspend()
Suspend this breakpoint |
Method Detail |
---|
Breakpoint.State getState()
void suspend()
void activate()
void beforeProcess(Exchange exchange, Processor processor, ProcessorDefinition definition)
Exchange
is about to be processed (before).
exchange
- the Exchange
processor
- the Processor
about to be processeddefinition
- the ProcessorDefinition
definition of the processorvoid afterProcess(Exchange exchange, Processor processor, ProcessorDefinition definition, long timeTaken)
Exchange
has been processed (after).
exchange
- the Exchange
processor
- the Processor
which was processeddefinition
- the ProcessorDefinition
definition of the processortimeTaken
- time in millis it took to process the Exchange
- time spend in breakpoint callbacks may affect this timevoid onEvent(Exchange exchange, EventObject event, ProcessorDefinition definition)
Exchange
event
s occurred.
exchange
- the Exchange
event
- the event (instance of AbstractExchangeEvent
definition
- the ProcessorDefinition
definition of the last processor executed,
may be null if not possible to resolve from tracingAbstractExchangeEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |