Package com.hazelcast.config
Class AutoDetectionConfig
java.lang.Object
com.hazelcast.config.AutoDetectionConfig
public class AutoDetectionConfig extends Object
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
Constructors Constructor Description AutoDetectionConfig()
-
Method Summary
Modifier and Type Method Description boolean
isEnabled()
Checks whether the auto detection mechanism is enabled.AutoDetectionConfig
setEnabled(boolean enabled)
Enables or disables the auto detection join mechanism.String
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
-