public class MemoryStorageService extends AbstractMapBackedStorageService
AbstractMapBackedStorageService
that stores data in-memory in a shared data structure
with no persistence.Constructor and Description |
---|
MemoryStorageService() |
Modifier and Type | Method and Description |
---|---|
protected void |
doDestroy() |
protected void |
doInitialize() |
protected TimerTask |
getCleanupTask()
Returns a cleanup task function to schedule for background cleanup.
|
protected Map<String,Map<String,MutableStorageRecord>> |
getContextMap()
Get the map of contexts to manipulate during operations.
|
protected ReadWriteLock |
getLock()
Get the shared lock to synchronize access.
|
create, delete, deleteContext, deleteImpl, deleteWithVersion, read, read, readImpl, reap, reapWithLock, update, updateContextExpiration, updateExpiration, updateImpl, updateWithVersion
create, create, delete, deleteWithVersion, getCapabilities, getCleanupInterval, getCleanupTaskTimer, getContextSize, getKeySize, getValueSize, read, setCleanupInterval, setCleanupTaskTimer, setContextSize, setKeySize, setValueSize, update, update, updateExpiration, updateWithVersion, updateWithVersion
setId
getId
destroy, initialize, isDestroyed, isInitialized
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class AbstractStorageService
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected 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()
The default implementation does not supply one.
getCleanupTask
in class AbstractStorageService
Copyright © 2017. All rights reserved.