Package org.jboss.modcluster.config.impl
Class BalancerConfigurationImpl
java.lang.Object
org.jboss.modcluster.config.impl.BalancerConfigurationImpl
- All Implemented Interfaces:
BalancerConfiguration
- Since:
- 1.3.6.Final
- Author:
- Radoslav Husar
-
Constructor Summary
ConstructorsConstructorDescriptionBalancerConfigurationImpl(boolean stickySession, boolean stickySessionRemove, boolean stickySessionForce, int workerTimeout, int maxAttempts) -
Method Summary
Modifier and TypeMethodDescriptionintMaximum number of attempts to send the request to the backend server.booleanEnables sticky sessions.booleanReturn an error when the request cannot be routed to the right node.booleanRemove session when the request cannot be routed to the right node.intTimeout to wait for an available worker (default is no wait).
-
Constructor Details
-
BalancerConfigurationImpl
public BalancerConfigurationImpl(boolean stickySession, boolean stickySessionRemove, boolean stickySessionForce, int workerTimeout, int maxAttempts)
-
-
Method Details
-
getStickySession
public boolean getStickySession()Description copied from interface:BalancerConfigurationEnables sticky sessions.- Specified by:
getStickySessionin interfaceBalancerConfiguration
-
getStickySessionRemove
public boolean getStickySessionRemove()Description copied from interface:BalancerConfigurationRemove session when the request cannot be routed to the right node.- Specified by:
getStickySessionRemovein interfaceBalancerConfiguration
-
getStickySessionForce
public boolean getStickySessionForce()Description copied from interface:BalancerConfigurationReturn an error when the request cannot be routed to the right node.- Specified by:
getStickySessionForcein interfaceBalancerConfiguration
-
getWorkerTimeout
public int getWorkerTimeout()Description copied from interface:BalancerConfigurationTimeout to wait for an available worker (default is no wait).- Specified by:
getWorkerTimeoutin interfaceBalancerConfiguration
-
getMaxAttempts
public int getMaxAttempts()Description copied from interface:BalancerConfigurationMaximum number of attempts to send the request to the backend server.- Specified by:
getMaxAttemptsin interfaceBalancerConfiguration
-