|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 events 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 Breakpointpublic void suspend()
Breakpoint
suspend in interface Breakpointpublic void activate()
Breakpoint
activate in interface Breakpoint
public 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 processor
public 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 time
public void onEvent(Exchange exchange,
EventObject event,
ProcessorDefinition definition)
BreakpointExchange events occurred.
onEvent 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 tracingAbstractExchangeEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||