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 - ExchangeSession should be committed,
otherwise falseExceptionboolean rollback(org.apache.camel.Exchange exchange)
throws Exception
exchange - ExchangeSession should be committed,
otherwise falseExceptionApache Camel