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()
BalancerConfiguration
getStickySession
in interface BalancerConfiguration
public boolean getStickySessionRemove()
BalancerConfiguration
getStickySessionRemove
in interface BalancerConfiguration
public boolean getStickySessionForce()
BalancerConfiguration
getStickySessionForce
in interface BalancerConfiguration
public int getWorkerTimeout()
BalancerConfiguration
getWorkerTimeout
in interface BalancerConfiguration
public int getMaxAttempts()
BalancerConfiguration
getMaxAttempts
in interface BalancerConfiguration
Copyright © 2023 JBoss by Red Hat. All rights reserved.