Package org.wildfly.extension.undertow
Class AbstractPersistentSessionManager
java.lang.Object
org.wildfly.extension.undertow.AbstractPersistentSessionManager
- 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>
- Direct Known Subclasses:
DiskBasedModularPersistentSessionManager,InMemoryModularPersistentSessionManager
public abstract class AbstractPersistentSessionManager
extends Object
implements io.undertow.servlet.api.SessionPersistenceManager, org.jboss.msc.service.Service<io.undertow.servlet.api.SessionPersistenceManager>
Persistent session manager
- Author:
- Stuart Douglas, Richard Opalka
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classNested classes/interfaces inherited from interface io.undertow.servlet.api.SessionPersistenceManager
io.undertow.servlet.api.SessionPersistenceManager.PersistentSession -
Field Summary
FieldsFields inherited from interface org.jboss.msc.service.Service
NULL -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.jboss.marshalling.Marshallerprotected org.jboss.marshalling.Unmarshallerio.undertow.servlet.api.SessionPersistenceManagergetValue()protected abstract Map<String,AbstractPersistentSessionManager.SessionEntry> loadSerializedSessions(String deploymentName) loadSessionAttributes(String deploymentName, ClassLoader classLoader) protected abstract voidpersistSerializedSessions(String deploymentName, Map<String, AbstractPersistentSessionManager.SessionEntry> serializedData) voidpersistSessions(String deploymentName, Map<String, io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> sessionData) voidstart(org.jboss.msc.service.StartContext startContext) voidstop(org.jboss.msc.service.StopContext stopContext)
-
Field Details
-
SERVICE_NAME
public static final org.jboss.msc.service.ServiceName SERVICE_NAME
-
-
Method Details
-
persistSessions
public void persistSessions(String deploymentName, Map<String, io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> sessionData) - Specified by:
persistSessionsin interfaceio.undertow.servlet.api.SessionPersistenceManager
-
persistSerializedSessions
protected abstract void persistSerializedSessions(String deploymentName, Map<String, AbstractPersistentSessionManager.SessionEntry> serializedData) throws IOException- Throws:
IOException
-
loadSerializedSessions
protected abstract Map<String,AbstractPersistentSessionManager.SessionEntry> loadSerializedSessions(String deploymentName) throws IOException - Throws:
IOException
-
loadSessionAttributes
public Map<String,io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> loadSessionAttributes(String deploymentName, ClassLoader classLoader) - Specified by:
loadSessionAttributesin interfaceio.undertow.servlet.api.SessionPersistenceManager
-
createMarshaller
- Throws:
IOException
-
createUnmarshaller
- Throws:
IOException
-
clear
- Specified by:
clearin interfaceio.undertow.servlet.api.SessionPersistenceManager
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public io.undertow.servlet.api.SessionPersistenceManager getValue()- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<io.undertow.servlet.api.SessionPersistenceManager>
-