Package org.apache.camel.test.junit5
Class DebugBreakpoint
java.lang.Object
org.apache.camel.support.BreakpointSupport
org.apache.camel.test.junit5.DebugBreakpoint
- All Implemented Interfaces:
org.apache.camel.spi.Breakpoint
public abstract class DebugBreakpoint
extends org.apache.camel.support.BreakpointSupport
To easily debug by overriding the debugBefore and debugAfter methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.spi.Breakpoint
org.apache.camel.spi.Breakpoint.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken) voidbeforeProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition) protected abstract voiddebugAfter(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label, long timeTaken) Single step debugs and Camel invokes this method after processing the given processorprotected abstract voiddebugBefore(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label) Single step debugs and Camel invokes this method before entering the given processorMethods inherited from class org.apache.camel.support.BreakpointSupport
activate, getState, onEvent, suspend
-
Constructor Details
-
DebugBreakpoint
public DebugBreakpoint()
-
-
Method Details
-
beforeProcess
public void beforeProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition) - Specified by:
beforeProcessin interfaceorg.apache.camel.spi.Breakpoint- Overrides:
beforeProcessin classorg.apache.camel.support.BreakpointSupport
-
afterProcess
public void afterProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken) - Specified by:
afterProcessin interfaceorg.apache.camel.spi.Breakpoint- Overrides:
afterProcessin classorg.apache.camel.support.BreakpointSupport
-
debugBefore
protected abstract void debugBefore(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label) Single step debugs and Camel invokes this method before entering the given processor- Parameters:
exchange- theExchangeprocessor- theProcessorwhich was processeddefinition- theProcessorDefinitiondefinition of the processorid- the definition IDlabel- the definition label
-
debugAfter
protected abstract void debugAfter(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label, long timeTaken) Single step debugs and Camel invokes this method after processing the given processor- Parameters:
exchange- theExchangeprocessor- theProcessorwhich was processeddefinition- theProcessorDefinitiondefinition of the processorid- the definition IDlabel- the definition label
-