Package com.hazelcast.config
Class AutoDetectionConfig
java.lang.Object
com.hazelcast.config.AutoDetectionConfig
Configuration for the Discovery Strategy Auto Detection.
When enabled, it will walk through all available discovery strategies and detect the correct one for the current runtime
environment. For example, it will automatically use the hazelcast-aws
plugin if run on an AWS instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Checks whether the auto-detection mechanism is enabled.setEnabled
(boolean enabled) Enables or disables the auto detection join mechanism.toString()
-
Constructor Details
-
AutoDetectionConfig
public AutoDetectionConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Checks whether the auto-detection mechanism is enabled.- Returns:
true
if enabled
-
setEnabled
Enables or disables the auto detection join mechanism.- Parameters:
enabled
-true
to enable the auto-detection join mechanism,false
to disable- Returns:
- AutoDetectionConfig the updated AutoDetectionConfig config
-
toString
-
equals
-
hashCode
public int hashCode()
-