public class MemoryStorageService extends AbstractMapBackedStorageService implements StorageCapabilitiesEx
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() |
boolean |
isClustered() |
boolean |
isServerSide() |
create, delete, deleteContext, deleteImpl, deleteWithVersion, read, read, readImpl, reap, reapWithLock, setDirty, 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, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextSize, getKeySize, getValueSize@NonnullAfterInit @NonnullElements private Map<String,Map<String,MutableStorageRecord>> contextMap
@NonnullAfterInit private ReadWriteLock lock
public boolean isServerSide()
isServerSide in interface StorageCapabilitiesExpublic boolean isClustered()
isClustered in interface StorageCapabilitiesExprotected 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–2016 Shibboleth Consortium. All rights reserved.