org.talend.esb.servicelocator.cxf.internal
Class EvenDistributionSelectionStrategyFactory
java.lang.Object
org.talend.esb.servicelocator.cxf.internal.EvenDistributionSelectionStrategyFactory
- All Implemented Interfaces:
- LocatorSelectionStrategyFactory
public class EvenDistributionSelectionStrategyFactory
- extends Object
- implements LocatorSelectionStrategyFactory
Creates an EvenDistributionSelectionStrategy instance, which
performs a client side round robin strategy.
In case of a fail over all strategies are equivalent.
A random alternative endpoint is selected.
If multiple clients use EvenDistributionSelectionStrategy it
could happen that all clients choose subsequently the same endpoints since the locator
instances for each client operate independently. RandomSelectionStrategy avoids this
problem.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EvenDistributionSelectionStrategyFactory
public EvenDistributionSelectionStrategyFactory()
setReloadAdressesCount
public void setReloadAdressesCount(int reloadAdressesCount)
getInstance
public LocatorSelectionStrategy getInstance()
- Specified by:
getInstance in interface LocatorSelectionStrategyFactory
Copyright © 2011–2014 Talend Inc.. All rights reserved.