org.infinispan.batch
Class BatchContainer

java.lang.Object
  extended by org.infinispan.batch.BatchContainer

public class BatchContainer
extends Object

A container for holding thread locals for batching, to be used with the Cache.startBatch() and Cache.endBatch(boolean) calls.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)

Constructor Summary
BatchContainer()
           
 
Method Summary
 void endBatch(boolean success)
           
 void endBatch(boolean autoBatch, boolean success)
           
 Transaction getBatchTransaction()
           
 boolean isSuspendTxAfterInvocation()
           
 boolean startBatch()
          Starts a batch
 boolean startBatch(boolean autoBatch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchContainer

public BatchContainer()
Method Detail

startBatch

public boolean startBatch()
                   throws CacheException
Starts a batch

Returns:
true if a batch was started; false if one was already available.
Throws:
CacheException

startBatch

public boolean startBatch(boolean autoBatch)
                   throws CacheException
Throws:
CacheException

endBatch

public void endBatch(boolean success)

endBatch

public void endBatch(boolean autoBatch,
                     boolean success)

getBatchTransaction

public Transaction getBatchTransaction()

isSuspendTxAfterInvocation

public boolean isSuspendTxAfterInvocation()

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.