org.jboss.cache.batch
Class BatchContainer

java.lang.Object
  extended by org.jboss.cache.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:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)

Constructor Summary
BatchContainer()
           
 
Method Summary
 void endBatch(boolean success)
           
 Transaction getBatchTransaction()
           
 void startBatch()
           
 
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 void startBatch()
                throws CacheException
Throws:
CacheException

endBatch

public void endBatch(boolean success)

getBatchTransaction

public Transaction getBatchTransaction()


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