public class ClusteredSessionService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static com.hazelcast.logging.ILogger |
LOGGER
The constant LOGGER.
|
| Constructor and Description |
|---|
ClusteredSessionService(WebFilterConfig filterConfig)
Instantiates a new Clustered session service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSession(String sessionId)
Check if session with sessionId exists on the cluster
|
boolean |
deleteSession(String sessionId,
boolean invalidate)
Delete session.
|
void |
destroy()
Destroy void.
|
Set<String> |
getAttributeNames(String id)
Gets attribute names.
|
void |
getSessionAsync(String sessionId)
Make an async get call to the cluster map for the given session.
|
void |
init() |
void |
setFailedConnection(boolean failedConnection) |
void |
updateAttributes(String id,
Map<String,Object> updates)
Update attributes.
|
protected static final com.hazelcast.logging.ILogger LOGGER
public ClusteredSessionService(WebFilterConfig filterConfig)
filterConfig - the filter configpublic void setFailedConnection(boolean failedConnection)
public boolean containsSession(String sessionId)
sessionId - the session idpublic void getSessionAsync(String sessionId)
sessionId - the session Idpublic boolean deleteSession(String sessionId, boolean invalidate)
sessionId - sessionIdinvalidate - if true remove the distributed session, otherwise just
remove the jvm referencepublic Set<String> getAttributeNames(String id) throws Exception
id - the idException - the exceptionpublic void updateAttributes(String id, Map<String,Object> updates) throws Exception
id - the idupdates - the updatesException - the exceptionpublic void destroy()
Copyright © 2020. All Rights Reserved.