Class ByThreadStrategy
java.lang.Object
com.predic8.membrane.core.config.AbstractXmlElement
com.predic8.membrane.core.interceptor.balancer.ByThreadStrategy
- All Implemented Interfaces:
XMLElement,DispatchingStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondispatch(LoadBalancingInterceptor interceptor, AbstractExchange exc) voiddone(AbstractExchange exc) protected Stringintintvoidprotected voidparseAttributes(XMLStreamReader token) voidsetMaxNumberOfThreadsPerEndpoint(int maxNumberOfThreadsPerEndpoint) voidsetRetryTimeOnBusy(int retryTimeOnBusy) voidwrite(XMLStreamWriter out) Methods inherited from class com.predic8.membrane.core.config.AbstractXmlElement
doAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
-
Constructor Details
-
ByThreadStrategy
public ByThreadStrategy()
-
-
Method Details
-
done
- Specified by:
donein interfaceDispatchingStrategy
-
dispatch
- Specified by:
dispatchin interfaceDispatchingStrategy
-
setMaxNumberOfThreadsPerEndpoint
public void setMaxNumberOfThreadsPerEndpoint(int maxNumberOfThreadsPerEndpoint) - Description
- Maximum number of concurrently running requests per endpoint.
-
setRetryTimeOnBusy
public void setRetryTimeOnBusy(int retryTimeOnBusy) -
getMaxNumberOfThreadsPerEndpoint
public int getMaxNumberOfThreadsPerEndpoint() -
getRetryTimeOnBusy
public int getRetryTimeOnBusy() -
write
- Specified by:
writein interfaceXMLElement- Overrides:
writein classAbstractXmlElement- Throws:
XMLStreamException
-
parseAttributes
- Overrides:
parseAttributesin classAbstractXmlElement
-
getElementName
- Overrides:
getElementNamein classAbstractXmlElement
-
init
- Specified by:
initin interfaceDispatchingStrategy
-