public class ClusteredSessionService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static ILogger |
LOGGER
The constant LOGGER.
|
| Constructor and Description |
|---|
ClusteredSessionService(javax.servlet.FilterConfig filterConfig,
Properties properties,
String clusterMapName,
String sessionTTL)
Instantiates a new Clustered session service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteSession(String sessionId,
boolean invalidate)
Delete session.
|
void |
destroy()
Destroy void.
|
Set<String> |
getAttributeNames(String id)
Gets attribute names.
|
void |
updateAttributes(String id,
Map<String,Object> updates)
Update attributes.
|
protected static final ILogger LOGGER
public ClusteredSessionService(javax.servlet.FilterConfig filterConfig,
Properties properties,
String clusterMapName,
String sessionTTL)
filterConfig - the filter configproperties - the propertiesclusterMapName - the cluster map namesessionTTL - the session tTLpublic 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 © 2015 Hazelcast, Inc.. All Rights Reserved.