public class Balancer<T extends Balancer> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Balancer.BalancerResources
Child mutators for Balancer
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
T |
loadBalancingGroup(LoadBalancingGroup value)
Add the LoadBalancingGroup object to the list of subresources
|
T |
loadBalancingGroups(List<LoadBalancingGroup> value)
Add all LoadBalancingGroup objects to this subresource
|
Integer |
maxAttempts()
The number of attempts to send the request to a backend server
|
T |
maxAttempts(Integer value)
The number of attempts to send the request to a backend server
|
T |
node(Node value)
Add the Node object to the list of subresources
|
T |
nodes(List<Node> value)
Add all Node objects to this subresource
|
Boolean |
stickySession()
If sticky sessions are enabled
|
T |
stickySession(Boolean value)
If sticky sessions are enabled
|
String |
stickySessionCookie()
The session cookie name
|
T |
stickySessionCookie(String value)
The session cookie name
|
Boolean |
stickySessionForce()
If this is true then an error will be returned if the request cannot be routed to the sticky node, otherwise it will be routed to another node
|
T |
stickySessionForce(Boolean value)
If this is true then an error will be returned if the request cannot be routed to the sticky node, otherwise it will be routed to another node
|
String |
stickySessionPath()
The path of the sticky session cookie
|
T |
stickySessionPath(String value)
The path of the sticky session cookie
|
Boolean |
stickySessionRemove()
Remove the session cookie if the request cannot be routed to the correct host
|
T |
stickySessionRemove(Boolean value)
Remove the session cookie if the request cannot be routed to the correct host
|
Balancer.BalancerResources |
subresources() |
Integer |
waitWorker()
The number of seconds to wait for an available worker
|
T |
waitWorker(Integer value)
The number of seconds to wait for an available worker
|
public Balancer(String key)
public String getKey()
public Integer maxAttempts()
public T maxAttempts(Integer value)
public Boolean stickySession()
public String stickySessionCookie()
public Boolean stickySessionForce()
public T stickySessionForce(Boolean value)
public String stickySessionPath()
public Boolean stickySessionRemove()
public T stickySessionRemove(Boolean value)
public Integer waitWorker()
public Balancer.BalancerResources subresources()
public T nodes(List<Node> value)
value - List of Node objects.public T node(Node value)
value - The Node to addpublic T loadBalancingGroups(List<LoadBalancingGroup> value)
value - List of LoadBalancingGroup objects.public T loadBalancingGroup(LoadBalancingGroup value)
value - The LoadBalancingGroup to addCopyright © 2015 JBoss by Red Hat. All rights reserved.