Class TransactionalBatcher<E extends RuntimeException>

java.lang.Object
org.wildfly.clustering.ee.cache.tx.TransactionalBatcher<E>
All Implemented Interfaces:
Batcher<TransactionBatch>

public class TransactionalBatcher<E extends RuntimeException> extends Object implements Batcher<TransactionBatch>
A Batcher implementation based on Infinispan's org.infinispan.batch.BatchContainer, except that its transaction reference is stored within the returned Batch object instead of a ThreadLocal. This also allows the user to call Batch.close() from a different thread than the one that created the Batch. In this case, however, the user must first resume the batch via resumeBatch(TransactionBatch).
Author:
Paul Ferraro