Package org.wildfly.extension.undertow
Class DiskBasedModularPersistentSessionManager
java.lang.Object
org.wildfly.extension.undertow.AbstractPersistentSessionManager
org.wildfly.extension.undertow.DiskBasedModularPersistentSessionManager
- All Implemented Interfaces:
io.undertow.servlet.api.SessionPersistenceManager,org.jboss.msc.Service,org.jboss.msc.service.Service<io.undertow.servlet.api.SessionPersistenceManager>,org.jboss.msc.value.Value<io.undertow.servlet.api.SessionPersistenceManager>
Persistent session manager that stores persistent session information to disk
- Author:
- Stuart Douglas, Richard Opalka
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wildfly.extension.undertow.AbstractPersistentSessionManager
AbstractPersistentSessionManager.SessionEntryNested classes/interfaces inherited from interface io.undertow.servlet.api.SessionPersistenceManager
io.undertow.servlet.api.SessionPersistenceManager.PersistentSession -
Field Summary
Fields inherited from class org.wildfly.extension.undertow.AbstractPersistentSessionManager
SERVICE_NAMEFields inherited from interface org.jboss.msc.service.Service
NULL -
Method Summary
Modifier and TypeMethodDescriptionloadSerializedSessions(String deploymentName) protected voidpersistSerializedSessions(String deploymentName, Map<String, AbstractPersistentSessionManager.SessionEntry> serializedData) voidstart(org.jboss.msc.service.StartContext startContext) voidstop(org.jboss.msc.service.StopContext stopContext) Methods inherited from class org.wildfly.extension.undertow.AbstractPersistentSessionManager
clear, createMarshaller, createUnmarshaller, getValue, loadSessionAttributes, persistSessions
-
Method Details
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext) - Specified by:
stopin interfaceorg.jboss.msc.Service- Overrides:
stopin classAbstractPersistentSessionManager
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Overrides:
startin classAbstractPersistentSessionManager- Throws:
org.jboss.msc.service.StartException
-
persistSerializedSessions
protected void persistSerializedSessions(String deploymentName, Map<String, AbstractPersistentSessionManager.SessionEntry> serializedData) throws IOException- Specified by:
persistSerializedSessionsin classAbstractPersistentSessionManager- Throws:
IOException
-
loadSerializedSessions
protected Map<String,AbstractPersistentSessionManager.SessionEntry> loadSerializedSessions(String deploymentName) throws IOException - Specified by:
loadSerializedSessionsin classAbstractPersistentSessionManager- Throws:
IOException
-