ehcache

net.sf.ehcache.transaction.local
Class LocalRecoveryManager

java.lang.Object
  extended by net.sf.ehcache.transaction.local.LocalRecoveryManager

public class LocalRecoveryManager
extends Object

The local transactions mode recovery manager which is used to trigger full recovery of all caches configured with local transaction mode.

Author:
Ludovic Orban

Constructor Summary
LocalRecoveryManager(TransactionIDFactory transactionIdFactory)
          Create a LocalRecoveryManager instance
 
Method Summary
 Set<TransactionID> getPreviouslyRecoveredTransactionIDs()
          Get the set of transaction IDs collected by the previous recover() call
 Set<TransactionID> recover()
          Run recovery on all registered local transaction stores.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalRecoveryManager

public LocalRecoveryManager(TransactionIDFactory transactionIdFactory)
Create a LocalRecoveryManager instance

Parameters:
transactionIdFactory - the TransactionIDFactory
Method Detail

recover

public Set<TransactionID> recover()
Run recovery on all registered local transaction stores. The latter are used internally by caches when they're configured with local transaction mode.

Returns:
the set of recovered TransactionIDs

getPreviouslyRecoveredTransactionIDs

public Set<TransactionID> getPreviouslyRecoveredTransactionIDs()
Get the set of transaction IDs collected by the previous recover() call

Returns:
the set of previously recovered TransactionIDs

ehcache

Copyright 2001-2015, Terracotta, Inc.