org.apache.camel.impl
Class BreakpointSupport

java.lang.Object
  extended by org.apache.camel.impl.BreakpointSupport
All Implemented Interfaces:
Breakpoint

public abstract class BreakpointSupport
extends Object
implements Breakpoint

A support class for Breakpoint implementations to use as base class.

Will be in active state.

Version:

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

BreakpointSupport

public BreakpointSupport()
Method Detail

getState

public Breakpoint.State getState()
Description copied from interface: Breakpoint
Gets the state of this break

Specified by:
getState in interface Breakpoint
Returns:
the state

suspend

public void suspend()
Description copied from interface: Breakpoint
Suspend this breakpoint

Specified by:
suspend in interface Breakpoint

activate

public void activate()
Description copied from interface: Breakpoint
Activates this breakpoint

Specified by:
activate in interface Breakpoint

beforeProcess

public void beforeProcess(Exchange exchange,
                          Processor processor,
                          ProcessorDefinition<?> definition)
Description copied from interface: Breakpoint
Callback invoked when the breakpoint was hit and the Exchange is about to be processed (before).

Specified by:
beforeProcess in interface Breakpoint
Parameters:
exchange - the Exchange
processor - the Processor about to be processed
definition - the ProcessorDefinition definition of the processor

afterProcess

public void afterProcess(Exchange exchange,
                         Processor processor,
                         ProcessorDefinition<?> definition,
                         long timeTaken)
Description copied from interface: Breakpoint
Callback invoked when the breakpoint was hit and the Exchange has been processed (after).

Specified by:
afterProcess in interface Breakpoint
Parameters:
exchange - the Exchange
processor - the Processor which was processed
definition - the ProcessorDefinition definition of the processor
timeTaken - time in millis it took to process the Exchange - time spend in breakpoint callbacks may affect this time

onEvent

public void onEvent(Exchange exchange,
                    EventObject event,
                    ProcessorDefinition<?> definition)
Description copied from interface: Breakpoint
Callback invoked when the breakpoint was hit and any of the Exchange events occurred.

Specified by:
onEvent in interface Breakpoint
Parameters:
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 tracing
See Also:
AbstractExchangeEvent


Apache CAMEL