public class BatchTransactionCommitStrategy extends Object implements TransactionCommitStrategy
Exchange
objects that have been been processed.Constructor and Description |
---|
BatchTransactionCommitStrategy(int count) |
public boolean commit(org.apache.camel.Exchange exchange) throws Exception
TransactionCommitStrategy
commit
in interface TransactionCommitStrategy
exchange
- Exchange
Session
should be committed,
otherwise falseException
public boolean rollback(org.apache.camel.Exchange exchange) throws Exception
TransactionCommitStrategy
rollback
in interface TransactionCommitStrategy
exchange
- Exchange
Session
should be committed,
otherwise falseException
public void reset()
Apache Camel