Class HazelcastSessionDataStoreFactory
java.lang.Object
org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
org.eclipse.jetty.hazelcast.session.HazelcastSessionDataStoreFactory
- All Implemented Interfaces:
org.eclipse.jetty.server.session.SessionDataStoreFactory
public class HazelcastSessionDataStoreFactory
extends org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
implements org.eclipse.jetty.server.session.SessionDataStoreFactory
Factory to construct
HazelcastSessionDataStore-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.hazelcast.core.HazelcastInstancecom.hazelcast.config.MapConfigorg.eclipse.jetty.server.session.SessionDataStoregetSessionDataStore(org.eclipse.jetty.server.session.SessionHandler handler) booleanbooleanvoidsetAddresses(String addresses) voidsetConfigurationLocation(String configurationLocation) voidsetHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance) voidsetHazelcastInstanceName(String hazelcastInstanceName) voidsetMapConfig(com.hazelcast.config.MapConfig mapConfig) voidsetMapName(String mapName) voidsetOnlyClient(boolean onlyClient) voidsetUseQueries(boolean useQueries) Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
Constructor Details
-
HazelcastSessionDataStoreFactory
public HazelcastSessionDataStoreFactory()
-
-
Method Details
-
isUseQueries
public boolean isUseQueries() -
setUseQueries
public void setUseQueries(boolean useQueries) -
getSessionDataStore
public org.eclipse.jetty.server.session.SessionDataStore getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler handler) throws Exception - Specified by:
getSessionDataStorein interfaceorg.eclipse.jetty.server.session.SessionDataStoreFactory- Throws:
Exception
-
isOnlyClient
public boolean isOnlyClient() -
setOnlyClient
public void setOnlyClient(boolean onlyClient) - Parameters:
onlyClient- iftruethe session manager will only connect to an external Hazelcast instance and not use this JVM to start an Hazelcast instance
-
getConfigurationLocation
-
setConfigurationLocation
-
getMapName
-
setMapName
-
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance() -
setHazelcastInstance
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance) -
getMapConfig
public com.hazelcast.config.MapConfig getMapConfig() -
setMapConfig
public void setMapConfig(com.hazelcast.config.MapConfig mapConfig) -
getHazelcastInstanceName
-
setHazelcastInstanceName
-
getAddresses
-
setAddresses
-