public class LoadBalancingInterceptor extends AbstractInterceptor
Interceptor.Flowid, name, router| Constructor and Description |
|---|
LoadBalancingInterceptor() |
getDisplayName, getFlow, getHelpId, getId, getLongDescription, getRouter, getRule, setDisplayName, setFlow, setIdpublic void init(Router router) throws Exception
init in interface Interceptorinit in class AbstractInterceptorExceptionpublic Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorhandleRequest in class AbstractInterceptorExceptionpublic void handleAbort(Exchange exc)
InterceptorInterceptor.handleRequest(Exchange) or
Interceptor.handleResponse(Exchange) later in the chain returned
Outcome.ABORT or threw an exception.
handleAbort is called in the reverse order of the chain (as
handleResponse is).handleAbort in interface InterceptorhandleAbort in class AbstractInterceptorpublic Outcome handleResponse(Exchange exc) throws Exception
handleResponse in interface InterceptorhandleResponse in class AbstractInterceptorExceptionpublic void setName(String name) throws Exception
AbstractInterceptor.setDisplayName(String), but the balancer's name
set in the proxy configuration to identify this balancer.Exceptionpublic String getName()
AbstractInterceptor.getDisplayName(), but the balancer's name set in
the proxy configuration to identify this balancer.public DispatchingStrategy getDispatchingStrategy()
public void setDispatchingStrategy(DispatchingStrategy strategy)
public AbstractSessionIdExtractor getSessionIdExtractor()
public void setNodeOnlineChecker(NodeOnlineChecker noc)
public NodeOnlineChecker getNodeOnlineChecker()
public void setSessionIdExtractor(AbstractSessionIdExtractor sessionIdExtractor)
public boolean isFailOver()
public void setFailOver(boolean failOver)
public Balancer getClusterManager()
public void setClustersFromSpring(List<Balancer> balancers)
public long getSessionTimeout()
public void setSessionTimeout(long sessionTimeout)
public String getShortDescription()
getShortDescription in interface InterceptorgetShortDescription in class AbstractInterceptorpublic void init()
throws Exception
AbstractInterceptorinit in class AbstractInterceptorExceptionCopyright © 2019. All Rights Reserved.