Package org.apache.curator.x.discovery
Class DownInstancePolicy
java.lang.Object
org.apache.curator.x.discovery.DownInstancePolicy
Abstraction for values that determine when an instance is down
-
Constructor Summary
ConstructorDescriptionPolicy with default valuesDownInstancePolicy
(long timeout, TimeUnit unit, int errorThreshold) -
Method Summary
-
Constructor Details
-
DownInstancePolicy
public DownInstancePolicy()Policy with default values -
DownInstancePolicy
- Parameters:
timeout
- window of time for down instancesunit
- time uniterrorThreshold
- number of errors within time window that denotes a down instance
-
-
Method Details
-
getTimeoutMs
public long getTimeoutMs() -
getErrorThreshold
public int getErrorThreshold()
-