org.infinispan.loaders.bdbje
Class ModificationsTransactionWorker
java.lang.Object
org.infinispan.loaders.bdbje.ModificationsTransactionWorker
- All Implemented Interfaces:
- com.sleepycat.collections.TransactionWorker
public class ModificationsTransactionWorker
- extends Object
- implements com.sleepycat.collections.TransactionWorker
Adapter that allows a list of Modification
s to be performed atomically via TransactionRunner
.
- Since:
- 4.0
- Author:
- Adrian Cole
Method Summary |
void |
doWork()
This implementation iterates through a list of work represented by Modification objects and
executes it against the CacheStore . Current commands supported are: STORE CLEAR
REMOVE PURGE_EXPIRED |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModificationsTransactionWorker
public ModificationsTransactionWorker(CacheStore store,
List<? extends Modification> mods)
- Associates
Modification
s that will be applied to the supplied CacheStore
- Parameters:
store
- what to affectmods
- actions to take
doWork
public void doWork()
throws Exception
- This implementation iterates through a list of work represented by
Modification
objects and
executes it against the CacheStore
. Current commands supported are: - STORE
- CLEAR
- REMOVE
- PURGE_EXPIRED
- Specified by:
doWork
in interface com.sleepycat.collections.TransactionWorker
- Throws:
Exception
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.