Class 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
    • Field Detail

      • SERVICE_NAME

        public static final org.jboss.msc.service.ServiceName SERVICE_NAME
    • Method Detail

      • persistSessions

        public void persistSessions​(String deploymentName,
                                    Map<String,​io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> sessionData)
        Specified by:
        persistSessions in interface io.undertow.servlet.api.SessionPersistenceManager
      • loadSessionAttributes

        public Map<String,​io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> loadSessionAttributes​(String deploymentName,
                                                                                                                           ClassLoader classLoader)
        Specified by:
        loadSessionAttributes in interface io.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 interface io.undertow.servlet.api.SessionPersistenceManager
      • start

        public void start​(org.jboss.msc.service.StartContext startContext)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext stopContext)
        Specified by:
        stop in interface org.jboss.msc.Service
      • getValue

        public io.undertow.servlet.api.SessionPersistenceManager getValue()
        Specified by:
        getValue in interface org.jboss.msc.value.Value<io.undertow.servlet.api.SessionPersistenceManager>