org.apache.camel.component.sjms.tx
Class DefaultTransactionCommitStrategy
java.lang.Object
org.apache.camel.component.sjms.tx.DefaultTransactionCommitStrategy
- All Implemented Interfaces:
- TransactionCommitStrategy
public class DefaultTransactionCommitStrategy
- extends Object
- implements TransactionCommitStrategy
The default commit strategy for all transaction.
|
Method Summary |
boolean |
commit(org.apache.camel.Exchange exchange)
Should returns true to allow the commit to proceed. |
boolean |
rollback(org.apache.camel.Exchange exchange)
Should returns true to allow the commit to proceed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTransactionCommitStrategy
public DefaultTransactionCommitStrategy()
commit
public boolean commit(org.apache.camel.Exchange exchange)
throws Exception
- Description copied from interface:
TransactionCommitStrategy
- Should returns true to allow the commit to proceed. If false, the commit
will be skipped. The default should always be true to avoid messages
remaining uncommitted.
- Specified by:
commit in interface TransactionCommitStrategy
- Parameters:
exchange -
- Returns:
-
- Throws:
Exception- See Also:
TransactionCommitStrategy.commit(org.apache.camel.Exchange)
rollback
public boolean rollback(org.apache.camel.Exchange exchange)
throws Exception
- Description copied from interface:
TransactionCommitStrategy
- Should returns true to allow the commit to proceed. If false, the commit
will be skipped. The default should always be true to avoid messages
remaining uncommitted.
- Specified by:
rollback in interface TransactionCommitStrategy
- Parameters:
exchange -
- Returns:
-
- Throws:
Exception- See Also:
TransactionCommitStrategy.rollback(org.apache.camel.Exchange)
Apache Camel