Class DistributableSession
java.lang.Object
org.wildfly.clustering.web.undertow.session.DistributableSession
- All Implemented Interfaces:
io.undertow.server.session.Session
Adapts a distributable
Session to an Undertow Session.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDistributableSession(UndertowSessionManager manager, Session<Map<String, Object>> session, io.undertow.server.session.SessionConfig config, Batch batch, Consumer<io.undertow.server.HttpServerExchange> closeTask, RecordableSessionManagerStatistics statistics) -
Method Summary
Modifier and TypeMethodDescriptionchangeSessionId(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config) getAttribute(String name) longgetId()longintio.undertow.server.session.SessionManagervoidinvalidate(io.undertow.server.HttpServerExchange exchange) removeAttribute(String name) voidrequestDone(io.undertow.server.HttpServerExchange exchange) setAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval)
-
Constructor Details
-
DistributableSession
public DistributableSession(UndertowSessionManager manager, Session<Map<String, Object>> session, io.undertow.server.session.SessionConfig config, Batch batch, Consumer<io.undertow.server.HttpServerExchange> closeTask, RecordableSessionManagerStatistics statistics)
-
-
Method Details
-
getSessionManager
public io.undertow.server.session.SessionManager getSessionManager()- Specified by:
getSessionManagerin interfaceio.undertow.server.session.Session
-
requestDone
public void requestDone(io.undertow.server.HttpServerExchange exchange) - Specified by:
requestDonein interfaceio.undertow.server.session.Session
-
getId
- Specified by:
getIdin interfaceio.undertow.server.session.Session
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfaceio.undertow.server.session.Session
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfaceio.undertow.server.session.Session
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfaceio.undertow.server.session.Session
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfaceio.undertow.server.session.Session
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceio.undertow.server.session.Session
-
getAttribute
- Specified by:
getAttributein interfaceio.undertow.server.session.Session
-
setAttribute
- Specified by:
setAttributein interfaceio.undertow.server.session.Session
-
removeAttribute
- Specified by:
removeAttributein interfaceio.undertow.server.session.Session
-
invalidate
public void invalidate(io.undertow.server.HttpServerExchange exchange) - Specified by:
invalidatein interfaceio.undertow.server.session.Session
-
changeSessionId
public String changeSessionId(io.undertow.server.HttpServerExchange exchange, io.undertow.server.session.SessionConfig config) - Specified by:
changeSessionIdin interfaceio.undertow.server.session.Session
-