Uses of Interface

Packages that use RemoteTransactionLogger
org.infinispan.distribution Classes relating to the distributed cache mode. 

Uses of RemoteTransactionLogger in org.infinispan.distribution

Subinterfaces of RemoteTransactionLogger in org.infinispan.distribution
 interface TransactionLogger
          Typically adding a command, the following pattern would be used:

if (txLogger.beforeCommand()) { try { // execute this command! } finally { txLogger.afterCommand(cmd); } }

When draining, the following pattern should be used:

List<WriteCommand> c = null; while (txLogger.shouldDrainWithoutLock()) { c = txLogger.drain(); applyCommands(c); } c = txLogger.drainAndLock(); applyCommands(c); applyPendingPrepares(txLogger.getPendingPrepares()); txLogger.unlockAndDisable();


Classes in org.infinispan.distribution that implement RemoteTransactionLogger
 class TransactionLoggerImpl
          A transaction logger to log ongoing transactions in an efficient and thread-safe manner while a rehash is going on.


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