Class RoundRobinStrategy
java.lang.Object
com.predic8.membrane.core.config.AbstractXmlElement
com.predic8.membrane.core.interceptor.balancer.RoundRobinStrategy
- All Implemented Interfaces:
XMLElement,DispatchingStrategy
Strategy that iterates the endpoints according to ...
This strategy is agnostic to every other factor, such as sessions and endpoint performance.
All endpoints that are considered to be UP are in.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondispatch(LoadBalancingInterceptor interceptor, AbstractExchange exc) voiddone(AbstractExchange exc) protected Stringvoidvoidwrite(XMLStreamWriter out) Methods inherited from class com.predic8.membrane.core.config.AbstractXmlElement
doAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseAttributes, parseCharacters, parseChildren, toXml, writeIfNotNull
-
Constructor Details
-
RoundRobinStrategy
public RoundRobinStrategy()
-
-
Method Details
-
done
- Specified by:
donein interfaceDispatchingStrategy
-
dispatch
public Node dispatch(LoadBalancingInterceptor interceptor, AbstractExchange exc) throws EmptyNodeListException - Specified by:
dispatchin interfaceDispatchingStrategy- Throws:
EmptyNodeListException
-
write
- Specified by:
writein interfaceXMLElement- Overrides:
writein classAbstractXmlElement- Throws:
XMLStreamException
-
getElementName
- Overrides:
getElementNamein classAbstractXmlElement
-
init
- Specified by:
initin interfaceDispatchingStrategy
-