Class DiscoveryGroupConfiguration

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DiscoveryGroupConfiguration
    extends java.lang.Object
    implements java.io.Serializable
    This file represents how we are using Discovery.

    The discovery configuration could either use plain UDP, or JGroups.
    If using UDP, all the UDP properties will be filled and the jgroups properties will be null.
    If using JGroups, all the UDP properties will be -1 or null and the jgroups properties will be filled.
    If by any reason, both properties are filled, the JGroups takes precedence. That means, if jgroupsFile != null then the Grouping method used will be JGroups.

    See Also:
    Serialized Form
    • Constructor Detail

      • DiscoveryGroupConfiguration

        public DiscoveryGroupConfiguration()
    • Method Detail

      • getName

        public java.lang.String getName()
      • getRefreshTimeout

        public long getRefreshTimeout()
      • setRefreshTimeout

        public DiscoveryGroupConfiguration setRefreshTimeout​(long refreshTimeout)
        Parameters:
        refreshTimeout - the refreshTimeout to set
      • getDiscoveryInitialWaitTimeout

        public long getDiscoveryInitialWaitTimeout()
        Returns:
        the discoveryInitialWaitTimeout
      • setDiscoveryInitialWaitTimeout

        public DiscoveryGroupConfiguration setDiscoveryInitialWaitTimeout​(long discoveryInitialWaitTimeout)
        Parameters:
        discoveryInitialWaitTimeout - the discoveryInitialWaitTimeout to set
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object