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 Details

    • AutoDetectionConfig

      public AutoDetectionConfig()
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object