public interface TransactionCommitStrategy
Synchronization
workflow that will allow a user
to control when the Session
commit operation is executed.Modifier and Type | Method and Description |
---|---|
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.
|
boolean commit(org.apache.camel.Exchange exchange) throws Exception
exchange
- Exchange
Session
should be committed,
otherwise falseException
boolean rollback(org.apache.camel.Exchange exchange) throws Exception
exchange
- Exchange
Session
should be committed,
otherwise falseException
Apache Camel