java.lang.Object
com.hazelcast.hibernate.CacheEnvironment
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty to configure the IMDG cluster connection backoff multiplierstatic final StringProperty to configure the IMDG cluster connection timeoutstatic final StringProperty to configure the path of the hazelcast.xml or hazelcast-client.xml configuration filesstatic final StringProperty to enable fallback on datasource if Hazelcast cluster is not availablestatic final StringProperty to configure whichIHazelcastInstanceFactorythat shall be used for creatinghazelcast instance loaders.static final StringProperty to configure the Hazelcast instance internal namestatic final StringProperty to configure Hazelcast Shutdown Hookstatic final StringProperty to configure the IMDG cluster connection initial backoffstatic final StringProperty to configure the IMDG cluster connection max backoffstatic final StringProperty to configure the address for the Hazelcast client to connect tostatic final StringProperty to configure Hazelcast client cluster namestatic final StringProperty to configure Hazelcast client instance namestatic final StringProperty to configure if the HazelcastInstance should going to shutdown when the RegionFactory is being stoppedstatic final StringProperty to configure whether a Hazelcast client or node will be used for connection to the cluster -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetBackoffMultiplier(Properties props) static DurationgetClusterTimeout(Properties props) static StringgetConfigFilePath(Properties props) static intstatic booleangetFallback(Map<String, Object> props) static DurationgetInitialBackoff(Properties props) static StringgetInstanceName(Properties props) static DurationgetMaxBackoff(Properties props) static booleanisNativeClient(Properties props) static booleanshutdownOnStop(Properties props, boolean defaultValue)
-
Field Details
-
CONFIG_FILE_PATH
Property to configure the path of the hazelcast.xml or hazelcast-client.xml configuration files- See Also:
-
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
Property to configure the address for the Hazelcast client to connect to- See Also:
-
NATIVE_CLIENT_CLUSTER_NAME
Property to configure Hazelcast client cluster name- See Also:
-
NATIVE_CLIENT_INSTANCE_NAME
Property to configure Hazelcast client instance name- See Also:
-
SHUTDOWN_ON_STOP
Property to configure if the HazelcastInstance should going to shutdown when the RegionFactory is being stopped- See Also:
-
FALLBACK
Property to enable fallback on datasource if Hazelcast cluster is not available- See Also:
-
CLUSTER_TIMEOUT
Property to configure the IMDG cluster connection timeout- See Also:
-
INITIAL_BACKOFF_MS
Property to configure the IMDG cluster connection initial backoff- See Also:
-
MAX_BACKOFF_MS
Property to configure the IMDG cluster connection max backoff- See Also:
-
BACKOFF_MULTIPLIER
Property to configure the IMDG cluster connection backoff multiplier- See Also:
-
HAZELCAST_INSTANCE_NAME
Property to configure the Hazelcast instance internal name- See Also:
-
HAZELCAST_SHUTDOWN_HOOK_ENABLED
Property to configure Hazelcast Shutdown Hook- See Also:
-
HAZELCAST_FACTORY
Property to configure whichIHazelcastInstanceFactorythat shall be used for creatinghazelcast instance loaders.- See Also:
-
-
Method Details
-
getConfigFilePath
-
getInstanceName
-
isNativeClient
-
getDefaultCacheTimeoutInMillis
public static int getDefaultCacheTimeoutInMillis() -
shutdownOnStop
-
getInitialBackoff
-
getMaxBackoff
-
getBackoffMultiplier
-
getClusterTimeout
-
getFallback
-