org.apache.camel.processor
Class RollbackProcessor

java.lang.Object
  extended by org.apache.camel.processor.RollbackProcessor
All Implemented Interfaces:
Processor, Traceable

public class RollbackProcessor
extends Object
implements Processor, Traceable

Processor for marking an Exchange to rollback.

Version:

Constructor Summary
RollbackProcessor()
           
RollbackProcessor(String message)
           
 
Method Summary
 String getTraceLabel()
          Gets the trace label used for logging when tracing is enabled.
 boolean isMarkRollbackOnly()
           
 boolean isMarkRollbackOnlyLast()
           
 void process(Exchange exchange)
          Processes the message exchange
 void setMarkRollbackOnly(boolean markRollbackOnly)
           
 void setMarkRollbackOnlyLast(boolean markRollbackOnlyLast)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RollbackProcessor

public RollbackProcessor()

RollbackProcessor

public RollbackProcessor(String message)
Method Detail

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

toString

public String toString()
Overrides:
toString in class Object

getTraceLabel

public String getTraceLabel()
Description copied from interface: Traceable
Gets the trace label used for logging when tracing is enabled.

The label should be short and precise.

Specified by:
getTraceLabel in interface Traceable
Returns:
the label

isMarkRollbackOnly

public boolean isMarkRollbackOnly()

setMarkRollbackOnly

public void setMarkRollbackOnly(boolean markRollbackOnly)

isMarkRollbackOnlyLast

public boolean isMarkRollbackOnlyLast()

setMarkRollbackOnlyLast

public void setMarkRollbackOnlyLast(boolean markRollbackOnlyLast)


Apache CAMEL