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 int
getMaxAttempts()
Maximum number of attempts to send the request to the backend server.boolean
getStickySession()
Enables sticky sessions.boolean
getStickySessionForce()
Return an error when the request cannot be routed to the right node.boolean
getStickySessionRemove()
Remove session when the request cannot be routed to the right node.int
getWorkerTimeout()
Timeout to wait for an available worker (default is no wait).
-
-
-
Method Detail
-
getStickySession
public boolean getStickySession()
Description copied from interface:BalancerConfiguration
Enables sticky sessions.- Specified by:
getStickySession
in interfaceBalancerConfiguration
-
getStickySessionRemove
public boolean getStickySessionRemove()
Description copied from interface:BalancerConfiguration
Remove session when the request cannot be routed to the right node.- Specified by:
getStickySessionRemove
in interfaceBalancerConfiguration
-
getStickySessionForce
public boolean getStickySessionForce()
Description copied from interface:BalancerConfiguration
Return an error when the request cannot be routed to the right node.- Specified by:
getStickySessionForce
in interfaceBalancerConfiguration
-
getWorkerTimeout
public int getWorkerTimeout()
Description copied from interface:BalancerConfiguration
Timeout to wait for an available worker (default is no wait).- Specified by:
getWorkerTimeout
in interfaceBalancerConfiguration
-
getMaxAttempts
public int getMaxAttempts()
Description copied from interface:BalancerConfiguration
Maximum number of attempts to send the request to the backend server.- Specified by:
getMaxAttempts
in interfaceBalancerConfiguration
-
-