Class CacheEnvironment

java.lang.Object
com.hazelcast.hibernate.CacheEnvironment

public final class CacheEnvironment extends Object
This class is used to help in setup the internal caches. It searches for configuration files and contains all property names for hibernate based configuration properties.
  • Field Details

    • CONFIG_FILE_PATH

      public static final String CONFIG_FILE_PATH
      Property to configure the path of the hazelcast.xml or hazelcast-client.xml configuration files
      See Also:
    • USE_NATIVE_CLIENT

      public static final String USE_NATIVE_CLIENT
      Property to configure whether a Hazelcast client or node will be used for connection to the cluster
      See Also:
    • NATIVE_CLIENT_ADDRESS

      public static final String NATIVE_CLIENT_ADDRESS
      Property to configure the address for the Hazelcast client to connect to
      See Also:
    • NATIVE_CLIENT_CLUSTER_NAME

      public static final String NATIVE_CLIENT_CLUSTER_NAME
      Property to configure Hazelcast client cluster name
      See Also:
    • NATIVE_CLIENT_INSTANCE_NAME

      public static final String NATIVE_CLIENT_INSTANCE_NAME
      Property to configure Hazelcast client instance name
      See Also:
    • SHUTDOWN_ON_STOP

      public static final String SHUTDOWN_ON_STOP
      Property to configure if the HazelcastInstance should going to shutdown when the RegionFactory is being stopped
      See Also:
    • FALLBACK

      public static final String FALLBACK
      Property to enable fallback on datasource if Hazelcast cluster is not available
      See Also:
    • CLUSTER_TIMEOUT

      public static final String CLUSTER_TIMEOUT
      Property to configure the IMDG cluster connection timeout
      See Also:
    • INITIAL_BACKOFF_MS

      public static final String INITIAL_BACKOFF_MS
      Property to configure the IMDG cluster connection initial backoff
      See Also:
    • MAX_BACKOFF_MS

      public static final String MAX_BACKOFF_MS
      Property to configure the IMDG cluster connection max backoff
      See Also:
    • BACKOFF_MULTIPLIER

      public static final String BACKOFF_MULTIPLIER
      Property to configure the IMDG cluster connection backoff multiplier
      See Also:
    • HAZELCAST_INSTANCE_NAME

      public static final String HAZELCAST_INSTANCE_NAME
      Property to configure the Hazelcast instance internal name
      See Also:
    • HAZELCAST_SHUTDOWN_HOOK_ENABLED

      public static final String HAZELCAST_SHUTDOWN_HOOK_ENABLED
      Property to configure Hazelcast Shutdown Hook
      See Also:
    • HAZELCAST_FACTORY

      public static final String HAZELCAST_FACTORY
      Property to configure which IHazelcastInstanceFactory that shall be used for creating hazelcast instance loaders.
      See Also:
  • Method Details

    • getConfigFilePath

      public static String getConfigFilePath(Properties props)
    • getInstanceName

      public static String getInstanceName(Properties props)
    • isNativeClient

      public static boolean isNativeClient(Properties props)
    • getDefaultCacheTimeoutInMillis

      public static int getDefaultCacheTimeoutInMillis()
    • shutdownOnStop

      public static boolean shutdownOnStop(Properties props, boolean defaultValue)
    • getInitialBackoff

      public static Duration getInitialBackoff(Properties props)
    • getMaxBackoff

      public static Duration getMaxBackoff(Properties props)
    • getBackoffMultiplier

      public static double getBackoffMultiplier(Properties props)
    • getClusterTimeout

      public static Duration getClusterTimeout(Properties props)
    • getFallback

      public static boolean getFallback(Map<String,Object> props)