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
ConstructorDescriptionBalancerConfigurationImpl
(boolean stickySession, boolean stickySessionRemove, boolean stickySessionForce, int workerTimeout, int maxAttempts) -
Method Summary
Modifier and TypeMethodDescriptionint
Maximum number of attempts to send the request to the backend server.boolean
Enables sticky sessions.boolean
Return an error when the request cannot be routed to the right node.boolean
Remove session when the request cannot be routed to the right node.int
Timeout 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: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
-