Class LeaderElectorOptions<O extends LeaderElectorOptions<O>>

    • Constructor Detail

      • LeaderElectorOptions

        public LeaderElectorOptions()
    • Method Detail

      • withElectionTimeout

        public O withElectionTimeout​(long electionTimeoutMillis)
        Sets the election timeout in milliseconds.
        Parameters:
        electionTimeoutMillis - the election timeout in milliseconds
        Returns:
        leader elector builder
      • withElectionTimeout

        public O withElectionTimeout​(long electionTimeout,
                                     java.util.concurrent.TimeUnit timeUnit)
        Sets the election timeout.
        Parameters:
        electionTimeout - the election timeout
        timeUnit - the timeout time unit
        Returns:
        leader elector builder
      • electionTimeoutMillis

        public final long electionTimeoutMillis()
        Returns the election timeout in milliseconds.
        Returns:
        the election timeout in milliseconds