public class DownInstancePolicy
extends java.lang.Object
| Constructor | Description |
|---|---|
DownInstancePolicy() |
Policy with default values
|
DownInstancePolicy(long timeout,
java.util.concurrent.TimeUnit unit,
int errorThreshold) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getErrorThreshold() |
|
long |
getTimeoutMs() |
public DownInstancePolicy()
public DownInstancePolicy(long timeout,
java.util.concurrent.TimeUnit unit,
int errorThreshold)
timeout - window of time for down instancesunit - time uniterrorThreshold - number of errors within time window that denotes a down instanceCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.