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()
PersistenceManager
preload
in interface PersistenceManager
public void disableStore(String storeType)
PersistenceManager
disableStore
in interface PersistenceManager
public <T> Set<T> getStores(Class<T> storeClass)
getStores
in interface PersistenceManager
public Collection<String> getStoresAsString()
getStoresAsString
in interface PersistenceManager
public void purgeExpired()
PersistenceManager
purgeExpired
in interface PersistenceManager
public boolean activate(Object key)
activate
in interface PersistenceManager
public void clearAllStores(boolean skipSharedStores)
PersistenceManager
AdvancedCacheWriter.clear()
on all the stores that aloes it.clearAllStores
in interface PersistenceManager
public boolean deleteFromAllStores(Object key, boolean skipSharedStore)
deleteFromAllStores
in interface PersistenceManager
public void processOnAllStores(AdvancedCacheLoader.KeyFilter keyFilter, AdvancedCacheLoader.CacheLoaderTask task, boolean fetchValue, boolean fetchMetadata)
processOnAllStores
in interface PersistenceManager
public MarshalledEntry loadFromAllStores(Object key, InvocationContext context)
loadFromAllStores
in interface PersistenceManager
public void writeToAllStores(MarshalledEntry marshalledEntry, boolean skipSharedStores)
writeToAllStores
in interface PersistenceManager
public AdvancedCacheLoader getStateTransferProvider()
PersistenceManager
getStateTransferProvider
in interface PersistenceManager
public int size()
size
in interface PersistenceManager
public 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.