public class BatchTransactionCommitStrategy extends Object implements TransactionCommitStrategy
Exchange
objects that have been been processed.| Constructor and Description |
|---|
BatchTransactionCommitStrategy(int count) |
public BatchTransactionCommitStrategy(int count)
count - 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