Class RollbackDefinition

  • All Implemented Interfaces:
    org.apache.camel.CamelContextAware, org.apache.camel.LineNumberAware, Block, org.apache.camel.NamedNode, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware

    @Metadata(label="eip,routing")
    public class RollbackDefinition
    extends NoOutputDefinition<RollbackDefinition>
    Forces a rollback by stopping routing the message
    • Constructor Detail

      • RollbackDefinition

        public RollbackDefinition()
      • RollbackDefinition

        public RollbackDefinition​(String message)
    • Method Detail

      • getShortName

        public String getShortName()
      • getMessage

        public String getMessage()
      • setMessage

        public void setMessage​(String message)
        Message to use in rollback exception
      • getMarkRollbackOnly

        public String getMarkRollbackOnly()
      • setMarkRollbackOnly

        public void setMarkRollbackOnly​(String markRollbackOnly)
        Mark the transaction for rollback only (cannot be overruled to commit)
      • getMarkRollbackOnlyLast

        public String getMarkRollbackOnlyLast()
      • setMarkRollbackOnlyLast

        public void setMarkRollbackOnlyLast​(String markRollbackOnlyLast)
        Mark only last sub transaction for rollback only.

        When using sub transactions (if the transaction manager support this)