Package com.hazelcast.config
Class AutoDetectionConfig
- java.lang.Object
-
- com.hazelcast.config.AutoDetectionConfig
-
public class AutoDetectionConfig extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isEnabled()
Checks whether the auto detection mechanism is enabled.AutoDetectionConfig
setEnabled(boolean enabled)
Enables or disables the auto detection join mechanism.java.lang.String
toString()
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Checks whether the auto detection mechanism is enabled.- Returns:
true
if enabled
-
setEnabled
public AutoDetectionConfig setEnabled(boolean enabled)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-