Class 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.

    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AutoDetectionConfig

        public AutoDetectionConfig()
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object