public class BalancerConfigurationImpl extends Object implements BalancerConfiguration
| Constructor and Description |
|---|
BalancerConfigurationImpl(boolean stickySession,
boolean stickySessionRemove,
boolean stickySessionForce,
int workerTimeout,
int maxAttempts) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxAttempts()
Maximum number of attempts to send the request to the backend server.
|
boolean |
getStickySession()
Enables sticky sessions.
|
boolean |
getStickySessionForce()
Return an error when the request cannot be routed to the right node.
|
boolean |
getStickySessionRemove()
Remove session when the request cannot be routed to the right node.
|
int |
getWorkerTimeout()
Timeout to wait for an available worker (default is no wait).
|
public BalancerConfigurationImpl(boolean stickySession,
boolean stickySessionRemove,
boolean stickySessionForce,
int workerTimeout,
int maxAttempts)
public boolean getStickySession()
BalancerConfigurationgetStickySession in interface BalancerConfigurationpublic boolean getStickySessionRemove()
BalancerConfigurationgetStickySessionRemove in interface BalancerConfigurationpublic boolean getStickySessionForce()
BalancerConfigurationgetStickySessionForce in interface BalancerConfigurationpublic int getWorkerTimeout()
BalancerConfigurationgetWorkerTimeout in interface BalancerConfigurationpublic int getMaxAttempts()
BalancerConfigurationgetMaxAttempts in interface BalancerConfigurationCopyright © 2023 JBoss by Red Hat. All rights reserved.