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 Classes Modifier and Type Class Description protected static classAbstractPersistentSessionManager.SessionEntry
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear(String deploymentName)protected org.jboss.marshalling.MarshallercreateMarshaller()protected org.jboss.marshalling.UnmarshallercreateUnmarshaller()io.undertow.servlet.api.SessionPersistenceManagergetValue()protected abstract Map<String,AbstractPersistentSessionManager.SessionEntry>loadSerializedSessions(String deploymentName)Map<String,io.undertow.servlet.api.SessionPersistenceManager.PersistentSession>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)
-
-
-
Method Detail
-
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
protected org.jboss.marshalling.Marshaller createMarshaller() throws IOException- Throws:
IOException
-
createUnmarshaller
protected org.jboss.marshalling.Unmarshaller createUnmarshaller() throws IOException- Throws:
IOException
-
clear
public void clear(String deploymentName)
- 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- Specified by:
startin interfaceorg.jboss.msc.service.Service<io.undertow.servlet.api.SessionPersistenceManager>- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<io.undertow.servlet.api.SessionPersistenceManager>
-
getValue
public io.undertow.servlet.api.SessionPersistenceManager getValue()
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<io.undertow.servlet.api.SessionPersistenceManager>
-
-