| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final AtomicInteger | |
| private final int | maxRetries
Maximum number of failover attempts to send the request to the backend server. |
| private final String | name
Name of the balancer. |
| private final boolean | stickySession
|
| private final String | stickySessionCookie
Name of the cookie containing the session-id. Max size: 30 Default: "JSESSIONID" |
| private final boolean | stickySessionForce
|
| private final String | stickySessionPath
Name of the parameter containing the session-id. Max size: 30. |
| private final boolean | stickySessionRemove
|
| private final int | waitWorker
value in seconds: time to wait for an available worker. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Balancer. | |
| public int | |
| public int | |
| public int | |
| public String | |
| public String | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String |
| id | back to summary |
|---|---|
| private final int id | |
| idGen | back to summary |
|---|---|
| private static final AtomicInteger idGen | |
| maxRetries | back to summary |
|---|---|
| private final int maxRetries Maximum number of failover attempts to send the request to the backend server. Default: "1" | |
| name | back to summary |
|---|---|
| private final String name Name of the balancer. max size: 40, Default: "mycluster" | |
| stickySession | back to summary |
|---|---|
| private final boolean stickySession
| |
| stickySessionCookie | back to summary |
|---|---|
| private final String stickySessionCookie Name of the cookie containing the session-id. Max size: 30 Default: "JSESSIONID" | |
| stickySessionForce | back to summary |
|---|---|
| private final boolean stickySessionForce
| |
| stickySessionPath | back to summary |
|---|---|
| private final String stickySessionPath Name of the parameter containing the session-id. Max size: 30. Default: "jsessionid" | |
| stickySessionRemove | back to summary |
|---|---|
| private final boolean stickySessionRemove
| |
| waitWorker | back to summary |
|---|---|
| private final int waitWorker value in seconds: time to wait for an available worker. Default: "0" no wait. | |
| Balancer | back to summary |
|---|---|
| pack-priv Balancer(Balancer. | |
| builder | back to summary |
|---|---|
| pack-priv static Balancer. | |
| getId | back to summary |
|---|---|
| public int getId() | |
| getMaxattempts | back to summary |
|---|---|
| public int getMaxattempts()
Deprecated
| |
| getMaxRetries | back to summary |
|---|---|
| public int getMaxRetries() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getStickySessionCookie | back to summary |
|---|---|
| public String getStickySessionCookie() | |
| getStickySessionPath | back to summary |
|---|---|
| public String getStickySessionPath() | |
| getWaitWorker | back to summary |
|---|---|
| public int getWaitWorker() | |
| isStickySession | back to summary |
|---|---|
| public boolean isStickySession() | |
| isStickySessionForce | back to summary |
|---|---|
| public boolean isStickySessionForce() | |
| isStickySessionRemove | back to summary |
|---|---|
| public boolean isStickySessionRemove() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private boolean | |
| private String | |
| private boolean | |
| private String | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Balancer | |
| public int | |
| public int | |
| public String | |
| public String | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Balancer. | setMaxattempts(int maxattempts)
Deprecated
for removal since 2.0.4. Use
BalancerBuilder#setMaxRetries(int).
|
| public Balancer. | setMaxRetries(int
number of failover attempts maxRetries)Maximum number of failover attempts to send the request to the backend server. |
| public Balancer. | |
| public Balancer. | |
| public Balancer. | |
| public Balancer. | |
| public Balancer. | |
| public Balancer. | |
| public Balancer. |
| maxRetries | back to summary |
|---|---|
| private int maxRetries | |
| name | back to summary |
|---|---|
| private String name | |
| stickySession | back to summary |
|---|---|
| private boolean stickySession | |
| stickySessionCookie | back to summary |
|---|---|
| private String stickySessionCookie | |
| stickySessionForce | back to summary |
|---|---|
| private boolean stickySessionForce | |
| stickySessionPath | back to summary |
|---|---|
| private String stickySessionPath | |
| stickySessionRemove | back to summary |
|---|---|
| private boolean stickySessionRemove | |
| waitWorker | back to summary |
|---|---|
| private int waitWorker | |
| BalancerBuilder | back to summary |
|---|---|
| public BalancerBuilder() | |
| build | back to summary |
|---|---|
| public Balancer build() | |
| getMaxattempts | back to summary |
|---|---|
public int getMaxattempts()
| |
| getMaxRetries | back to summary |
|---|---|
| public int getMaxRetries() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getStickySessionCookie | back to summary |
|---|---|
| public String getStickySessionCookie() | |
| getStickySessionPath | back to summary |
|---|---|
| public String getStickySessionPath() | |
| getWaitWorker | back to summary |
|---|---|
| public int getWaitWorker() | |
| isStickySession | back to summary |
|---|---|
| public boolean isStickySession() | |
| isStickySessionForce | back to summary |
|---|---|
| public boolean isStickySessionForce() | |
| isStickySessionRemove | back to summary |
|---|---|
| public boolean isStickySessionRemove() | |
| setMaxattempts | back to summary |
|---|---|
public Balancer.
| |
| setMaxRetries | back to summary |
|---|---|
| public Balancer. Maximum number of failover attempts to send the request to the backend server.
| |
| setName | back to summary |
|---|---|
| public Balancer. | |
| setStickySession | back to summary |
|---|---|
| public Balancer. | |
| setStickySessionCookie | back to summary |
|---|---|
| public Balancer. | |
| setStickySessionForce | back to summary |
|---|---|
| public Balancer. | |
| setStickySessionPath | back to summary |
|---|---|
| public Balancer. | |
| setStickySessionRemove | back to summary |
|---|---|
| public Balancer. | |
| setWaitWorker | back to summary |
|---|---|
| public Balancer. | |