public class Balancer extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Balancer.BalancerResources
Child mutators for Balancer
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
Balancer |
loadBalancingGroup(LoadBalancingGroup value)
Add the org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.LoadBalancingGroup object to the list of subresources
|
Balancer |
loadBalancingGroups(List<LoadBalancingGroup> value)
Add all org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.LoadBalancingGroup objects to this subresource
|
Integer |
maxAttempts()
The number of attempts to send the request to a backend server
|
Balancer |
maxAttempts(Integer value)
The number of attempts to send the request to a backend server
|
Balancer |
node(Node value)
Add the org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.Node object to the list of subresources
|
Balancer |
nodes(List<Node> value)
Add all org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.Node objects to this subresource
|
Boolean |
stickySession()
If sticky sessions are enabled
|
Balancer |
stickySession(Boolean value)
If sticky sessions are enabled
|
String |
stickySessionCookie()
The session cookie name
|
Balancer |
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
|
Balancer |
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
|
Balancer |
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
|
Balancer |
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
|
Balancer |
waitWorker(Integer value)
The number of seconds to wait for an available worker
|
public Balancer(String key)
public String getKey()
public Integer maxAttempts()
public Balancer maxAttempts(Integer value)
public Boolean stickySession()
public String stickySessionCookie()
public Boolean stickySessionForce()
public Balancer stickySessionForce(Boolean value)
public String stickySessionPath()
public Balancer stickySessionPath(String value)
public Boolean stickySessionRemove()
public Balancer stickySessionRemove(Boolean value)
public Integer waitWorker()
public Balancer waitWorker(Integer value)
public Balancer.BalancerResources subresources()
public Balancer nodes(List<Node> value)
value - List of org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.Node objects.public Balancer node(Node value)
value - The org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.Node to addpublic Balancer loadBalancingGroups(List<LoadBalancingGroup> value)
value - List of org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.LoadBalancingGroup objects.public Balancer loadBalancingGroup(LoadBalancingGroup value)
value - The org.wildfly.swarm.config.undertow.configuration.mod_cluster.balancer.LoadBalancingGroup to addCopyright © 2015 JBoss by Red Hat. All rights reserved.