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

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


Constructor Summary
EvenDistributionSelectionStrategyFactory()
           
 
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

EvenDistributionSelectionStrategyFactory

public EvenDistributionSelectionStrategyFactory()
Method Detail

setReloadAdressesCount

public void setReloadAdressesCount(int reloadAdressesCount)

getInstance

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


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