Class DownInstancePolicy

java.lang.Object
org.apache.curator.x.discovery.DownInstancePolicy

public class DownInstancePolicy extends Object
Abstraction for values that determine when an instance is down
  • Constructor Details

    • DownInstancePolicy

      public DownInstancePolicy()
      Policy with default values
    • DownInstancePolicy

      public DownInstancePolicy(long timeout, TimeUnit unit, int errorThreshold)
      Parameters:
      timeout - window of time for down instances
      unit - time unit
      errorThreshold - number of errors within time window that denotes a down instance
  • Method Details

    • getTimeoutMs

      public long getTimeoutMs()
    • getErrorThreshold

      public int getErrorThreshold()