public class BatchTransactionCommitStrategy extends Object implements TransactionCommitStrategy
Exchange
objects that have been been processed.| Constructor and Description |
|---|
BatchTransactionCommitStrategy(int count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit(org.apache.camel.Exchange exchange)
Should returns true to allow the commit to proceed.
|
void |
reset() |
boolean |
rollback(org.apache.camel.Exchange exchange)
Should returns true to allow the commit to proceed.
|
public boolean commit(org.apache.camel.Exchange exchange)
throws Exception
TransactionCommitStrategycommit in interface TransactionCommitStrategyexchange - ExchangeSession should be committed,
otherwise falseExceptionpublic boolean rollback(org.apache.camel.Exchange exchange)
throws Exception
TransactionCommitStrategyrollback in interface TransactionCommitStrategyexchange - ExchangeSession should be committed,
otherwise falseExceptionpublic void reset()
Apache Camel