public class PersistenceManagerImpl extends Object implements PersistenceManager
| Constructor and Description | 
|---|
PersistenceManagerImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
activate(Object key)  | 
void | 
clearAllStores(boolean skipSharedStores)
Invokes  
AdvancedCacheWriter.clear() on all the stores that aloes it. | 
protected AsyncCacheWriter | 
createAsyncWriter(CacheWriter writer)  | 
boolean | 
deleteFromAllStores(Object key,
                   boolean skipSharedStore)  | 
void | 
disableStore(String storeType)
Marks the given storage as disabled. 
 | 
List<CacheLoader> | 
getAllLoaders()  | 
List<CacheWriter> | 
getAllWriters()  | 
StreamingMarshaller | 
getMarshaller()  | 
Executor | 
getPersistenceExecutor()  | 
AdvancedCacheLoader | 
getStateTransferProvider()
Returns the store one configured with fetch persistent state, or null if none exist. 
 | 
<T> Set<T> | 
getStores(Class<T> storeClass)  | 
Collection<String> | 
getStoresAsString()  | 
void | 
inject(AdvancedCache<Object,Object> cache,
      StreamingMarshaller marshaller,
      Configuration configuration,
      TransactionManager transactionManager,
      TimeService timeService,
      ExecutorService persistenceExecutor,
      ByteBufferFactory byteBufferFactory,
      MarshalledEntryFactory marshalledEntryFactory)  | 
MarshalledEntry | 
loadFromAllStores(Object key,
                 InvocationContext context)  | 
void | 
preload()
Loads the data from the external store into memory during cache startup. 
 | 
void | 
processOnAllStores(AdvancedCacheLoader.KeyFilter keyFilter,
                  AdvancedCacheLoader.CacheLoaderTask task,
                  boolean fetchValue,
                  boolean fetchMetadata)  | 
void | 
purgeExpired()
Removes the expired entries from all the existing storage. 
 | 
int | 
size()  | 
void | 
start()  | 
void | 
stop()  | 
void | 
writeToAllStores(MarshalledEntry marshalledEntry,
                boolean skipSharedStores)  | 
public void inject(AdvancedCache<Object,Object> cache, StreamingMarshaller marshaller, Configuration configuration, TransactionManager transactionManager, TimeService timeService, ExecutorService persistenceExecutor, ByteBufferFactory byteBufferFactory, MarshalledEntryFactory marshalledEntryFactory)
public void preload()
PersistenceManagerpreload in interface PersistenceManagerpublic void disableStore(String storeType)
PersistenceManagerdisableStore in interface PersistenceManagerpublic <T> Set<T> getStores(Class<T> storeClass)
getStores in interface PersistenceManagerpublic Collection<String> getStoresAsString()
getStoresAsString in interface PersistenceManagerpublic void purgeExpired()
PersistenceManagerpurgeExpired in interface PersistenceManagerpublic boolean activate(Object key)
activate in interface PersistenceManagerpublic void clearAllStores(boolean skipSharedStores)
PersistenceManagerAdvancedCacheWriter.clear() on all the stores that aloes it.clearAllStores in interface PersistenceManagerpublic boolean deleteFromAllStores(Object key, boolean skipSharedStore)
deleteFromAllStores in interface PersistenceManagerpublic void processOnAllStores(AdvancedCacheLoader.KeyFilter keyFilter, AdvancedCacheLoader.CacheLoaderTask task, boolean fetchValue, boolean fetchMetadata)
processOnAllStores in interface PersistenceManagerpublic MarshalledEntry loadFromAllStores(Object key, InvocationContext context)
loadFromAllStores in interface PersistenceManagerpublic void writeToAllStores(MarshalledEntry marshalledEntry, boolean skipSharedStores)
writeToAllStores in interface PersistenceManagerpublic AdvancedCacheLoader getStateTransferProvider()
PersistenceManagergetStateTransferProvider in interface PersistenceManagerpublic int size()
size in interface PersistenceManagerpublic List<CacheLoader> getAllLoaders()
public List<CacheWriter> getAllWriters()
protected AsyncCacheWriter createAsyncWriter(CacheWriter writer)
public Executor getPersistenceExecutor()
public StreamingMarshaller getMarshaller()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.