Class BalancerConfigurationBuilder
java.lang.Object
org.jboss.modcluster.config.builder.BalancerConfigurationBuilder
- All Implemented Interfaces:
ConfigurationBuilder,Creator<BalancerConfiguration>
Builder for balancer configuration.
- Since:
- 1.3.6.Final
- Author:
- Radoslav Husar
-
Method Summary
Modifier and TypeMethodDescriptionBuilder for multicast-based advertise configuration.balancer()Builder for balancer configuration.build()Builds the main configuration object.create()Creates the configuration object.mcmp()Builder for MCMP (Mod-Cluster Management Protocol) handler configuration.node()Builder for proxy node configuration.setMaxAttempts(int maxAttempts) Sets the maximum number of attempts to send the request to the backend server.setStickySession(boolean stickySession) Enables or disables sticky sessions.setStickySessionForce(boolean stickySessionForce) Sets to return an error when the request cannot be routed to the right node.setStickySessionRemove(boolean stickySessionRemove) Sets to remove session when the request cannot be routed to the right node.setWorkerTimeout(int workerTimeout) Sets timeout to wait for an available worker (default is no wait).
-
Method Details
-
setStickySession
Enables or disables sticky sessions. -
setStickySessionRemove
Sets to remove session when the request cannot be routed to the right node. -
setStickySessionForce
Sets to return an error when the request cannot be routed to the right node. -
setWorkerTimeout
Sets timeout to wait for an available worker (default is no wait). -
setMaxAttempts
Sets the maximum number of attempts to send the request to the backend server. -
create
Description copied from interface:CreatorCreates the configuration object.- Specified by:
createin interfaceCreator<BalancerConfiguration>
-
advertise
Description copied from interface:ConfigurationBuilderBuilder for multicast-based advertise configuration.- Specified by:
advertisein interfaceConfigurationBuilder
-
balancer
Description copied from interface:ConfigurationBuilderBuilder for balancer configuration.- Specified by:
balancerin interfaceConfigurationBuilder
-
node
Description copied from interface:ConfigurationBuilderBuilder for proxy node configuration.- Specified by:
nodein interfaceConfigurationBuilder
-
mcmp
Description copied from interface:ConfigurationBuilderBuilder for MCMP (Mod-Cluster Management Protocol) handler configuration.- Specified by:
mcmpin interfaceConfigurationBuilder
-
build
Description copied from interface:ConfigurationBuilderBuilds the main configuration object.- Specified by:
buildin interfaceConfigurationBuilder
-