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:Creator
Creates the configuration object.- Specified by:
create
in interfaceCreator<BalancerConfiguration>
-
advertise
Description copied from interface:ConfigurationBuilder
Builder for multicast-based advertise configuration.- Specified by:
advertise
in interfaceConfigurationBuilder
-
balancer
Description copied from interface:ConfigurationBuilder
Builder for balancer configuration.- Specified by:
balancer
in interfaceConfigurationBuilder
-
node
Description copied from interface:ConfigurationBuilder
Builder for proxy node configuration.- Specified by:
node
in interfaceConfigurationBuilder
-
mcmp
Description copied from interface:ConfigurationBuilder
Builder for MCMP (Mod-Cluster Management Protocol) handler configuration.- Specified by:
mcmp
in interfaceConfigurationBuilder
-
build
Description copied from interface:ConfigurationBuilder
Builds the main configuration object.- Specified by:
build
in interfaceConfigurationBuilder
-