|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.BreakpointSupport
public abstract class BreakpointSupport
A support class for Breakpoint
implementations to use as base class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.camel.spi.Breakpoint |
---|
Breakpoint.State |
Constructor Summary | |
---|---|
BreakpointSupport()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BreakpointSupport()
Method Detail |
---|
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
Exchange
event
s occurred.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |