org.infinispan.loaders.bdbje
Class ModificationsTransactionWorker

java.lang.Object
  extended by 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 Modifications to be performed atomically via TransactionRunner.

Since:
4.0
Author:
Adrian Cole

Constructor Summary
ModificationsTransactionWorker(CacheStore store, List<? extends Modification> mods)
          Associates Modifications that will be applied to the supplied CacheStore
 
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
 

Constructor Detail

ModificationsTransactionWorker

public ModificationsTransactionWorker(CacheStore store,
                                      List<? extends Modification> mods)
Associates Modifications that will be applied to the supplied CacheStore

Parameters:
store - what to affect
mods - actions to take
Method Detail

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:

Specified by:
doWork in interface com.sleepycat.collections.TransactionWorker
Throws:
Exception

-->

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