Class HazelcastSessionDataStoreFactory
java.lang.Object
org.eclipse.jetty.session.AbstractSessionDataStoreFactory
org.eclipse.jetty.hazelcast.session.HazelcastSessionDataStoreFactory
- All Implemented Interfaces:
SessionDataStoreFactory
public class HazelcastSessionDataStoreFactory
extends AbstractSessionDataStoreFactory
implements SessionDataStoreFactory
Factory to construct
HazelcastSessionDataStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.hazelcast.client.config.ClientConfig
com.hazelcast.core.HazelcastInstance
com.hazelcast.config.MapConfig
com.hazelcast.config.Config
getSessionDataStore
(SessionManager sessionManager) boolean
boolean
void
setAddresses
(String addresses) void
setClientConfig
(com.hazelcast.client.config.ClientConfig clientConfig) void
setConfigurationLocation
(String configurationLocation) void
setHazelcastInstance
(com.hazelcast.core.HazelcastInstance hazelcastInstance) void
setHazelcastInstanceName
(String hazelcastInstanceName) void
setMapConfig
(com.hazelcast.config.MapConfig mapConfig) void
setMapName
(String mapName) void
setOnlyClient
(boolean onlyClient) void
setServerConfig
(com.hazelcast.config.Config serverConfig) void
setUseQueries
(boolean useQueries) Methods inherited from class org.eclipse.jetty.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
Constructor Details
-
HazelcastSessionDataStoreFactory
public HazelcastSessionDataStoreFactory()
-
-
Method Details
-
isUseQueries
public boolean isUseQueries() -
setUseQueries
public void setUseQueries(boolean useQueries) -
getSessionDataStore
- Specified by:
getSessionDataStore
in interfaceSessionDataStoreFactory
- Throws:
Exception
-
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 a Hazelcast instance
-
getConfigurationLocation
-
setConfigurationLocation
- Parameters:
configurationLocation
- the location of the XML Hazelcast configuration file to load. Depending on whethersetOnlyClient(boolean)
is set totrue
or not, this will be used to configure either a Hazelcast client or a Hazelcast server. This parameter is mutually exclusive withsetClientConfig(ClientConfig)
andsetServerConfig(Config)
.
-
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
-
getClientConfig
public com.hazelcast.client.config.ClientConfig getClientConfig() -
setClientConfig
public void setClientConfig(com.hazelcast.client.config.ClientConfig clientConfig) - Parameters:
clientConfig
- the client configuration to use to connect to Hazelcast. Only used ifsetOnlyClient(boolean)
is set totrue
. Overrides any configuration set viasetConfigurationLocation(String)
-
getServerConfig
public com.hazelcast.config.Config getServerConfig() -
setServerConfig
public void setServerConfig(com.hazelcast.config.Config serverConfig) - Parameters:
serverConfig
- the server configuration to use to configure the embedded Hazelcast cluster. Only used ifsetOnlyClient(boolean)
is set tofalse
. Overrides any configuration set viasetConfigurationLocation(String)
-