public class Balancer<T extends Balancer<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Balancer.BalancerResources
Child mutators for Balancer
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
T |
loadBalancingGroup(LoadBalancingGroup value)
Add the LoadBalancingGroup object to the list of subresources
|
T |
loadBalancingGroup(LoadBalancingGroupSupplier supplier)
Install a supplied LoadBalancingGroup object to the list of subresources
|
T |
loadBalancingGroup(String childKey)
Create and configure a LoadBalancingGroup object to the list of
subresources
|
T |
loadBalancingGroup(String childKey,
LoadBalancingGroupConsumer consumer)
Create and configure a 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 |
node(NodeSupplier supplier)
Install a supplied Node object to the list of subresources
|
T |
node(String childKey)
Create and configure a Node object to the list of subresources
|
T |
node(String childKey,
NodeConsumer consumer)
Create and configure a Node object to the list of subresources
|
T |
nodes(List<Node> value)
Add all Node objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
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 void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
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 node(String childKey, NodeConsumer consumer)
key
- The key for the Node resourceconfig
- The NodeConsumer to usepublic T node(String childKey)
key
- The key for the Node resourcepublic T node(NodeSupplier supplier)
public T loadBalancingGroups(List<LoadBalancingGroup> value)
value
- List of LoadBalancingGroup objects.public T loadBalancingGroup(LoadBalancingGroup value)
value
- The LoadBalancingGroup to addpublic T loadBalancingGroup(String childKey, LoadBalancingGroupConsumer consumer)
key
- The key for the LoadBalancingGroup resourceconfig
- The LoadBalancingGroupConsumer to usepublic T loadBalancingGroup(String childKey)
key
- The key for the LoadBalancingGroup resourcepublic T loadBalancingGroup(LoadBalancingGroupSupplier supplier)
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()
Copyright © 2018 JBoss by Red Hat. All rights reserved.