Top Description Inners Fields Constructors Methods
io.undertow.servlet.util

public Class InMemorySessionPersistence

extends Object
implements SessionPersistenceManager
Class Inheritance
All Implemented Interfaces
io.undertow.servlet.api.SessionPersistenceManager
Imports
io.undertow.servlet.UndertowServletLogger, io.undertow.servlet.api.SessionPersistenceManager, java.io.ByteArrayInputStream, .ByteArrayOutputStream, .ObjectInputStream, .ObjectOutputStream, java.util.Date, .HashMap, .Map, java.util.concurrent.ConcurrentHashMap

Session persistence implementation that simply stores session information in memory.
Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final Map<String, Map<String, InMemorySessionPersistence.SessionEntry>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public Map<String, SessionPersistenceManager.PersistentSession>
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private static final Map<String, Map<String, InMemorySessionPersistence.SessionEntry>> data

Constructor Detail

InMemorySessionPersistenceback to summary
public InMemorySessionPersistence()

Method Detail

clearback to summary
public void clear(String deploymentName)

Implements io.undertow.servlet.api.SessionPersistenceManager.clear.

Annotations
@Override
loadSessionAttributesback to summary
public Map<String, SessionPersistenceManager.PersistentSession> loadSessionAttributes(String deploymentName, final ClassLoader classLoader)

Implements io.undertow.servlet.api.SessionPersistenceManager.loadSessionAttributes.

Annotations
@Override
persistSessionsback to summary
public void persistSessions(String deploymentName, Map<String, SessionPersistenceManager.PersistentSession> sessionData)

Implements io.undertow.servlet.api.SessionPersistenceManager.persistSessions.

Annotations
@Override
io.undertow.servlet.util back to summary

pack-priv final Class InMemorySessionPersistence.SessionEntry

extends Object
Class Inheritance
  • java.lang.Object
  • io.undertow.servlet.util.InMemorySessionPersistence.SessionEntry

Field Summary

Modifier and TypeField and Description
private final Map<String, byte[]>
private final Date

Constructor Summary

AccessConstructor and Description
private
SessionEntry(Date expiry, Map<String, byte[]> data)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private final Map<String, byte[]> data
expiryback to summary
private final Date expiry

Constructor Detail

SessionEntryback to summary
private SessionEntry(Date expiry, Map<String, byte[]> data)