Package net.sf.ehcache.transaction.local
Class LocalRecoveryManager
- java.lang.Object
-
- net.sf.ehcache.transaction.local.LocalRecoveryManager
-
public class LocalRecoveryManager extends java.lang.ObjectThe 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
Constructors Constructor Description LocalRecoveryManager(TransactionIDFactory transactionIdFactory)Create a LocalRecoveryManager instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<TransactionID>getPreviouslyRecoveredTransactionIDs()Get the set of transaction IDs collected by the previous recover() calljava.util.Set<TransactionID>recover()Run recovery on all registered local transaction stores.
-
-
-
Constructor Detail
-
LocalRecoveryManager
public LocalRecoveryManager(TransactionIDFactory transactionIdFactory)
Create a LocalRecoveryManager instance- Parameters:
transactionIdFactory- the TransactionIDFactory
-
-
Method Detail
-
recover
public java.util.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 java.util.Set<TransactionID> getPreviouslyRecoveredTransactionIDs()
Get the set of transaction IDs collected by the previous recover() call- Returns:
- the set of previously recovered TransactionIDs
-
-