Class DistributableWebSession
java.lang.Object
org.wildfly.clustering.spring.web.DistributableWebSession
- All Implemented Interfaces:
AutoCloseable,org.springframework.web.server.WebSession,SpringWebSession
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDistributableWebSession(org.wildfly.clustering.session.SessionManager<Void> manager, org.wildfly.clustering.session.Session<Void> session, org.wildfly.clustering.cache.batch.SuspendedBatch batch) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void> voidclose()To be invoked byWebSession.save().getId()reactor.core.publisher.Mono<Void> booleanbooleanisNew()Indicates whether this session was created during the current request.booleanbooleanisValid()Indicates whether this session was invalidated by the current request.reactor.core.publisher.Mono<Void> save()voidsetMaxIdleTime(Duration maxIdleTime) voidstart()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.server.WebSession
getAttribute, getAttributeOrDefault, getRequiredAttribute
-
Constructor Details
-
DistributableWebSession
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.springframework.web.server.WebSession
-
getAttributes
-
start
public void start()- Specified by:
startin interfaceorg.springframework.web.server.WebSession
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceorg.springframework.web.server.WebSession
-
isNew
public boolean isNew()Description copied from interface:SpringWebSessionIndicates whether this session was created during the current request.- Specified by:
isNewin interfaceSpringWebSession- Returns:
- true, if this session was newly created, false otherwise.
-
isValid
public boolean isValid()Description copied from interface:SpringWebSessionIndicates whether this session was invalidated by the current request.- Specified by:
isValidin interfaceSpringWebSession- Returns:
- true, if this session was invalidated, false otherwise.
-
changeSessionId
- Specified by:
changeSessionIdin interfaceorg.springframework.web.server.WebSession
-
invalidate
- Specified by:
invalidatein interfaceorg.springframework.web.server.WebSession
-
close
public void close()Description copied from interface:SpringWebSessionTo be invoked byWebSession.save().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSpringWebSession
-
save
- Specified by:
savein interfaceorg.springframework.web.server.WebSession
-
isExpired
public boolean isExpired()- Specified by:
isExpiredin interfaceorg.springframework.web.server.WebSession
-
getCreationTime
- Specified by:
getCreationTimein interfaceorg.springframework.web.server.WebSession
-
getLastAccessTime
- Specified by:
getLastAccessTimein interfaceorg.springframework.web.server.WebSession
-
setMaxIdleTime
- Specified by:
setMaxIdleTimein interfaceorg.springframework.web.server.WebSession
-
getMaxIdleTime
- Specified by:
getMaxIdleTimein interfaceorg.springframework.web.server.WebSession
-