public class HazelcastSessionDataStoreFactory extends AbstractSessionDataStoreFactory implements SessionDataStoreFactory
HazelcastSessionDataStore
Constructor and Description |
---|
HazelcastSessionDataStoreFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConfigurationLocation() |
com.hazelcast.core.HazelcastInstance |
getHazelcastInstance() |
java.lang.String |
getHazelcastInstanceName() |
com.hazelcast.config.MapConfig |
getMapConfig() |
java.lang.String |
getMapName() |
SessionDataStore |
getSessionDataStore(SessionHandler handler) |
boolean |
isOnlyClient() |
void |
setConfigurationLocation(java.lang.String configurationLocation) |
void |
setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance) |
void |
setHazelcastInstanceName(java.lang.String hazelcastInstanceName) |
void |
setMapConfig(com.hazelcast.config.MapConfig mapConfig) |
void |
setMapName(java.lang.String mapName) |
void |
setOnlyClient(boolean onlyClient) |
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
public SessionDataStore getSessionDataStore(SessionHandler handler) throws java.lang.Exception
getSessionDataStore
in interface SessionDataStoreFactory
java.lang.Exception
public boolean isOnlyClient()
public void setOnlyClient(boolean onlyClient)
onlyClient
- if true
the session manager will only connect to an external Hazelcast instance
and not use this JVM to start an Hazelcast instancepublic java.lang.String getConfigurationLocation()
public void setConfigurationLocation(java.lang.String configurationLocation)
public java.lang.String getMapName()
public void setMapName(java.lang.String mapName)
public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance)
public com.hazelcast.config.MapConfig getMapConfig()
public void setMapConfig(com.hazelcast.config.MapConfig mapConfig)
public java.lang.String getHazelcastInstanceName()
public void setHazelcastInstanceName(java.lang.String hazelcastInstanceName)
Copyright © 1995–2018 Webtide. All rights reserved.