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)
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 |
init() |
void |
setFailedConnection(boolean failedConnection) |
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)
filterConfig
- the filter configproperties
- the propertiesclusterMapName
- the cluster map namepublic void setFailedConnection(boolean failedConnection)
public 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 © 2016 Hazelcast, Inc.. All Rights Reserved.