public static final class Balancer.BalancerBuilder
extends java.lang.Object
Constructor | Description |
---|---|
BalancerBuilder() |
public java.lang.String getName()
public Balancer.BalancerBuilder setName(java.lang.String name)
public boolean isStickySession()
public Balancer.BalancerBuilder setStickySession(boolean stickySession)
public java.lang.String getStickySessionCookie()
public Balancer.BalancerBuilder setStickySessionCookie(java.lang.String stickySessionCookie)
public java.lang.String getStickySessionPath()
public Balancer.BalancerBuilder setStickySessionPath(java.lang.String stickySessionPath)
public boolean isStickySessionRemove()
public Balancer.BalancerBuilder setStickySessionRemove(boolean stickySessionRemove)
public boolean isStickySessionForce()
public Balancer.BalancerBuilder setStickySessionForce(boolean stickySessionForce)
public int getWaitWorker()
public Balancer.BalancerBuilder setWaitWorker(int waitWorker)
public int getMaxRetries()
public Balancer.BalancerBuilder setMaxRetries(int maxRetries)
maxRetries
- number of failover attempts@Deprecated public int getMaxattempts()
getMaxRetries()
.@Deprecated public Balancer.BalancerBuilder setMaxattempts(int maxattempts)
setMaxRetries(int)
.public Balancer build()
Copyright © 2018. All rights reserved.