public class MemoryStorageService extends AbstractMapBackedStorageService
AbstractMapBackedStorageService that stores data in-memory in a shared data structure
with no persistence.| Modifier and Type | Field and Description |
|---|---|
private Map<String,Map<String,MutableStorageRecord>> |
contextMap
Map of contexts.
|
private ReadWriteLock |
lock
A shared lock to synchronize access.
|
private Logger |
log
Class logger.
|
| Constructor and Description |
|---|
MemoryStorageService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
protected void |
doInitialize() |
protected TimerTask |
getCleanupTask() |
protected Map<String,Map<String,MutableStorageRecord>> |
getContextMap() |
protected ReadWriteLock |
getLock() |
create, delete, deleteContext, deleteImpl, deleteWithVersion, read, read, readImpl, reap, reapWithLock, update, updateContextExpiration, updateExpiration, updateImpl, updateWithVersioncreate, create, delete, deleteWithVersion, getCapabilities, getCleanupInterval, getCleanupTaskTimer, getContextSize, getKeySize, getValueSize, read, setCleanupInterval, setCleanupTaskTimer, setContextSize, setKeySize, setValueSize, update, update, updateExpiration, updateWithVersion, updateWithVersionsetIdgetIddestroy, initialize, isDestroyed, isInitialized@NonnullAfterInit @NonnullElements private Map<String,Map<String,MutableStorageRecord>> contextMap
@NonnullAfterInit private ReadWriteLock lock
protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class AbstractStorageServicenet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected void doDestroy()
doDestroy in class AbstractStorageService@Nonnull @NonnullElements @Live protected Map<String,Map<String,MutableStorageRecord>> getContextMap()
getContextMap in class AbstractMapBackedStorageService@Nonnull protected ReadWriteLock getLock()
getLock in class AbstractMapBackedStorageService@Nullable protected TimerTask getCleanupTask()
getCleanupTask in class AbstractStorageServiceCopyright © 1999–2015. All rights reserved.