Class DistributableSessionManager
- java.lang.Object
-
- org.wildfly.clustering.web.undertow.session.DistributableSessionManager
-
- All Implemented Interfaces:
io.undertow.server.session.SessionManager,LongConsumer,UndertowSessionManager
public class DistributableSessionManager extends Object implements UndertowSessionManager, LongConsumer
Adapts a distributableSessionManagerto an UndertowSessionManager.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributableSessionManager(DistributableSessionManagerConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(long stamp)io.undertow.server.session.SessioncreateSession(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config)booleanequals(Object object)Set<String>getActiveSessions()Set<String>getAllSessions()StringgetDeploymentName()io.undertow.server.session.SessiongetSession(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config)io.undertow.server.session.SessiongetSession(String sessionId)io.undertow.server.session.SessionListenersgetSessionListeners()Returns the configured session listeners for this web applicationorg.wildfly.clustering.web.session.SessionManager<Map<String,Object>,org.wildfly.clustering.ee.Batch>getSessionManager()Returns underlying distributable session manager implementation.io.undertow.server.session.SessionManagerStatisticsgetStatistics()Set<String>getTransientSessions()inthashCode()voidregisterSessionListener(io.undertow.server.session.SessionListener listener)voidremoveSessionListener(io.undertow.server.session.SessionListener listener)voidsetDefaultSessionTimeout(int timeout)voidstart()voidstop()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.function.LongConsumer
andThen
-
-
-
-
Constructor Detail
-
DistributableSessionManager
public DistributableSessionManager(DistributableSessionManagerConfiguration config)
-
-
Method Detail
-
getSessionListeners
public io.undertow.server.session.SessionListeners getSessionListeners()
Description copied from interface:UndertowSessionManagerReturns the configured session listeners for this web application- Specified by:
getSessionListenersin interfaceUndertowSessionManager- Returns:
- the session listeners
-
getSessionManager
public org.wildfly.clustering.web.session.SessionManager<Map<String,Object>,org.wildfly.clustering.ee.Batch> getSessionManager()
Description copied from interface:UndertowSessionManagerReturns underlying distributable session manager implementation.- Specified by:
getSessionManagerin interfaceUndertowSessionManager- Returns:
- a session manager
-
start
public void start()
- Specified by:
startin interfaceio.undertow.server.session.SessionManager
-
accept
public void accept(long stamp)
- Specified by:
acceptin interfaceLongConsumer
-
stop
public void stop()
- Specified by:
stopin interfaceio.undertow.server.session.SessionManager
-
createSession
public io.undertow.server.session.Session createSession(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config)- Specified by:
createSessionin interfaceio.undertow.server.session.SessionManager
-
getSession
public io.undertow.server.session.Session getSession(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config)- Specified by:
getSessionin interfaceio.undertow.server.session.SessionManager
-
registerSessionListener
public void registerSessionListener(io.undertow.server.session.SessionListener listener)
- Specified by:
registerSessionListenerin interfaceio.undertow.server.session.SessionManager
-
removeSessionListener
public void removeSessionListener(io.undertow.server.session.SessionListener listener)
- Specified by:
removeSessionListenerin interfaceio.undertow.server.session.SessionManager
-
setDefaultSessionTimeout
public void setDefaultSessionTimeout(int timeout)
- Specified by:
setDefaultSessionTimeoutin interfaceio.undertow.server.session.SessionManager
-
getTransientSessions
public Set<String> getTransientSessions()
- Specified by:
getTransientSessionsin interfaceio.undertow.server.session.SessionManager
-
getActiveSessions
public Set<String> getActiveSessions()
- Specified by:
getActiveSessionsin interfaceio.undertow.server.session.SessionManager
-
getAllSessions
public Set<String> getAllSessions()
- Specified by:
getAllSessionsin interfaceio.undertow.server.session.SessionManager
-
getSession
public io.undertow.server.session.Session getSession(String sessionId)
- Specified by:
getSessionin interfaceio.undertow.server.session.SessionManager
-
getDeploymentName
public String getDeploymentName()
- Specified by:
getDeploymentNamein interfaceio.undertow.server.session.SessionManager
-
getStatistics
public io.undertow.server.session.SessionManagerStatistics getStatistics()
- Specified by:
getStatisticsin interfaceio.undertow.server.session.SessionManager
-
-