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 class
AbstractPersistentSessionManager.SessionEntry
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceName
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear(String deploymentName)
protected org.jboss.marshalling.Marshaller
createMarshaller()
protected org.jboss.marshalling.Unmarshaller
createUnmarshaller()
io.undertow.servlet.api.SessionPersistenceManager
getValue()
protected abstract Map<String,AbstractPersistentSessionManager.SessionEntry>
loadSerializedSessions(String deploymentName)
Map<String,io.undertow.servlet.api.SessionPersistenceManager.PersistentSession>
loadSessionAttributes(String deploymentName, ClassLoader classLoader)
protected abstract void
persistSerializedSessions(String deploymentName, Map<String,AbstractPersistentSessionManager.SessionEntry> serializedData)
void
persistSessions(String deploymentName, Map<String,io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> sessionData)
void
start(org.jboss.msc.service.StartContext startContext)
void
stop(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:
persistSessions
in 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:
loadSessionAttributes
in 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:
clear
in interfaceio.undertow.servlet.api.SessionPersistenceManager
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
- Specified by:
start
in interfaceorg.jboss.msc.Service
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext)
- Specified by:
stop
in interfaceorg.jboss.msc.Service
-
getValue
public io.undertow.servlet.api.SessionPersistenceManager getValue()
- Specified by:
getValue
in interfaceorg.jboss.msc.value.Value<io.undertow.servlet.api.SessionPersistenceManager>
-
-