Package org.jboss.modcluster.config.impl
Class BalancerConfigurationImpl
- java.lang.Object
-
- org.jboss.modcluster.config.impl.BalancerConfigurationImpl
-
- All Implemented Interfaces:
BalancerConfiguration
public class BalancerConfigurationImpl extends Object implements BalancerConfiguration
- Since:
- 1.3.6.Final
- Author:
- Radoslav Husar
-
-
Constructor Summary
Constructors Constructor Description BalancerConfigurationImpl(boolean stickySession, boolean stickySessionRemove, boolean stickySessionForce, int workerTimeout, int maxAttempts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxAttempts()Maximum number of attempts to send the request to the backend server.booleangetStickySession()Enables sticky sessions.booleangetStickySessionForce()Return an error when the request cannot be routed to the right node.booleangetStickySessionRemove()Remove session when the request cannot be routed to the right node.intgetWorkerTimeout()Timeout to wait for an available worker (default is no wait).
-
-
-
Method Detail
-
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
-
-