org.talend.esb.servicelocator.cxf.internal
Class RandomSelectionStrategyFactory

java.lang.Object
  extended by 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.


Constructor Summary
RandomSelectionStrategyFactory()
           
 
Method Summary
 LocatorSelectionStrategy getInstance()
           
 void setReloadAdressesCount(int reloadAdressesCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomSelectionStrategyFactory

public RandomSelectionStrategyFactory()
Method Detail

setReloadAdressesCount

public void setReloadAdressesCount(int reloadAdressesCount)

getInstance

public LocatorSelectionStrategy getInstance()
Specified by:
getInstance in interface LocatorSelectionStrategyFactory


Copyright © 2011-2013 Talend Inc.. All Rights Reserved.