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 Details

    • HazelcastSessionDataStoreFactory

      public HazelcastSessionDataStoreFactory()
  • Method Details

    • isUseQueries

      public boolean isUseQueries()
    • setUseQueries

      public void setUseQueries(boolean useQueries)
    • getSessionDataStore

      public SessionDataStore getSessionDataStore(SessionManager sessionManager) throws Exception
      Specified by:
      getSessionDataStore in interface SessionDataStoreFactory
      Throws:
      Exception
    • isOnlyClient

      public boolean isOnlyClient()
    • setOnlyClient

      public void setOnlyClient(boolean onlyClient)
      Parameters:
      onlyClient - if true the session manager will only connect to an external Hazelcast instance and not use this JVM to start a Hazelcast instance
    • getConfigurationLocation

      public String getConfigurationLocation()
    • setConfigurationLocation

      public void setConfigurationLocation(String configurationLocation)
      Parameters:
      configurationLocation - the location of the XML Hazelcast configuration file to load. Depending on whether setOnlyClient(boolean) is set to true or not, this will be used to configure either a Hazelcast client or a Hazelcast server. This parameter is mutually exclusive with setClientConfig(ClientConfig) and setServerConfig(Config).
    • getMapName

      public String getMapName()
    • setMapName

      public void setMapName(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 String getHazelcastInstanceName()
    • setHazelcastInstanceName

      public void setHazelcastInstanceName(String hazelcastInstanceName)
    • getAddresses

      public String getAddresses()
    • setAddresses

      public void setAddresses(String addresses)
    • 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 if setOnlyClient(boolean) is set to true. Overrides any configuration set via setConfigurationLocation(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 if setOnlyClient(boolean) is set to false. Overrides any configuration set via setConfigurationLocation(String)