public abstract class BreakpointSupport extends Object implements Breakpoint
Breakpoint implementations to use as base class.
Will be in active state.Breakpoint.State| Constructor and Description |
|---|
BreakpointSupport() |
| Modifier and Type | Method and Description |
|---|---|
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)
|
void |
suspend()
Suspend this breakpoint
|
public Breakpoint.State getState()
BreakpointgetState in interface Breakpointpublic void suspend()
Breakpointsuspend in interface Breakpointpublic void activate()
Breakpointactivate in interface Breakpointpublic void beforeProcess(Exchange exchange, Processor processor, ProcessorDefinition<?> definition)
BreakpointExchange is about to be processed (before).beforeProcess in interface Breakpointexchange - the Exchangeprocessor - the Processor about to be processeddefinition - the ProcessorDefinition definition of the processorpublic void afterProcess(Exchange exchange, Processor processor, ProcessorDefinition<?> definition, long timeTaken)
BreakpointExchange has been processed (after).afterProcess in interface Breakpointexchange - the Exchangeprocessor - 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 timepublic void onEvent(Exchange exchange, EventObject event, ProcessorDefinition<?> definition)
BreakpointonEvent in interface Breakpointexchange - the Exchangeevent - the event (instance of AbstractExchangeEventdefinition - the ProcessorDefinition definition of the last processor executed,
may be null if not possible to resolve from tracingAbstractExchangeEventApache Camel