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 BreakpointSupport()
public Breakpoint.State getState()
Breakpoint
getState
in interface Breakpoint
public void suspend()
Breakpoint
suspend
in interface Breakpoint
public void activate()
Breakpoint
activate
in interface Breakpoint
public void beforeProcess(Exchange exchange, Processor processor, ProcessorDefinition<?> definition)
Breakpoint
Exchange
is about to be processed (before).beforeProcess
in interface Breakpoint
exchange
- the Exchange
processor
- the Processor
about to be processeddefinition
- the ProcessorDefinition
definition of the processorpublic void afterProcess(Exchange exchange, Processor processor, ProcessorDefinition<?> definition, long timeTaken)
Breakpoint
Exchange
has been processed (after).afterProcess
in interface Breakpoint
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 timepublic void onEvent(Exchange exchange, EventObject event, ProcessorDefinition<?> definition)
Breakpoint
onEvent
in interface Breakpoint
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
Apache Camel