public static class ModCluster.Builder extends Object
public ModCluster build()
public ModCluster.Builder setMaxRequestTime(int maxRequestTime)
public ModCluster.Builder setHealthCheckInterval(long healthCheckInterval)
public ModCluster.Builder setRemoveBrokenNodes(long removeBrokenNodes)
public ModCluster.Builder setMaxConnections(int maxConnections)
public ModCluster.Builder setCacheConnections(int cacheConnections)
public ModCluster.Builder setRequestQueueSize(int requestQueueSize)
public ModCluster.Builder setQueueNewRequests(boolean queueNewRequests)
public ModCluster.Builder setHealthChecker(NodeHealthChecker healthChecker)
public ModCluster.Builder setUseAlias(boolean useAlias)
public ModCluster.Builder setMaxRetries(int maxRetries)
public ModCluster.Builder setDeterministicFailover(boolean deterministicFailover)
public ModCluster.Builder setRouteParsingStrategy(RouteParsingStrategy routeParsingStrategy)
routeParsingStrategy
- strategy to use for parsing routespublic ModCluster.Builder setRankedAffinityDelimiter(String rankedAffinityDelimiter)
RouteParsingStrategy.RANKED
is specified. Web requests will have an affinity for the first available node in the list.rankedAffinityDelimiter
- delimiter splitting multiple routes; typically a "."public ModCluster.Builder setTtl(long ttl)
public ModCluster.Builder setClientOptions(org.xnio.OptionMap clientOptions)
public ModCluster.Builder setReuseXForwarded(boolean reuseXForwarded)
Copyright © 2020 JBoss by Red Hat. All rights reserved.