org.talend.esb.servicelocator.cxf.internal
Class RandomSelectionStrategyFactory
java.lang.Object
org.talend.esb.servicelocator.cxf.internal.RandomSelectionStrategyFactory
- All Implemented Interfaces:
- LocatorSelectionStrategyFactory
public class RandomSelectionStrategyFactory
- extends Object
- implements LocatorSelectionStrategyFactory
Creates a RandomSelectionStrategy instance, which
selects randomly from the available endpoints for each call.
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 |
RandomSelectionStrategyFactory
public RandomSelectionStrategyFactory()
setReloadAdressesCount
public void setReloadAdressesCount(int reloadAdressesCount)
getInstance
public LocatorSelectionStrategy getInstance()
- Specified by:
getInstance in interface LocatorSelectionStrategyFactory
Copyright © 2011–2014 Talend Inc.. All rights reserved.