Class HazelcastSessionDataStoreFactory
- java.lang.Object
-
- org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
-
- org.eclipse.jetty.hazelcast.session.HazelcastSessionDataStoreFactory
-
- All Implemented Interfaces:
SessionDataStoreFactory
public class HazelcastSessionDataStoreFactory extends AbstractSessionDataStoreFactory implements SessionDataStoreFactory
Factory to constructHazelcastSessionDataStore
-
-
Constructor Summary
Constructors Constructor Description HazelcastSessionDataStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAddresses()
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()
boolean
isScavengeZombies()
void
setAddresses(java.lang.String addresses)
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)
void
setScavengeZombies(boolean scavengeZombies)
-
Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
-
-
-
Method Detail
-
isScavengeZombies
public boolean isScavengeZombies()
-
setScavengeZombies
public void setScavengeZombies(boolean scavengeZombies)
-
getSessionDataStore
public SessionDataStore getSessionDataStore(SessionHandler handler)
- Specified by:
getSessionDataStore
in interfaceSessionDataStoreFactory
-
isOnlyClient
public boolean isOnlyClient()
-
setOnlyClient
public void setOnlyClient(boolean onlyClient)
- Parameters:
onlyClient
- iftrue
the session manager will only connect to an external Hazelcast instance and not use this JVM to start an Hazelcast instance
-
getConfigurationLocation
public java.lang.String getConfigurationLocation()
-
setConfigurationLocation
public void setConfigurationLocation(java.lang.String configurationLocation)
-
getMapName
public java.lang.String getMapName()
-
setMapName
public void setMapName(java.lang.String mapName)
-
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
public java.lang.String getHazelcastInstanceName()
-
setHazelcastInstanceName
public void setHazelcastInstanceName(java.lang.String hazelcastInstanceName)
-
getAddresses
public java.lang.String getAddresses()
-
setAddresses
public void setAddresses(java.lang.String addresses)
-
-