com.alipay.remoting
Class RandomSelectStrategy

java.lang.Object
  extended by com.alipay.remoting.RandomSelectStrategy
All Implemented Interfaces:
ConnectionSelectStrategy

public class RandomSelectStrategy
extends Object
implements ConnectionSelectStrategy

Select a connection randomly


Constructor Summary
RandomSelectStrategy()
           
RandomSelectStrategy(GlobalSwitch globalSwitch)
           
 
Method Summary
 Connection select(List<Connection> conns)
          select strategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomSelectStrategy

public RandomSelectStrategy()

RandomSelectStrategy

public RandomSelectStrategy(GlobalSwitch globalSwitch)
Method Detail

select

public Connection select(List<Connection> conns)
Description copied from interface: ConnectionSelectStrategy
select strategy

Specified by:
select in interface ConnectionSelectStrategy
Returns:
See Also:
ConnectionSelectStrategy.select(java.util.List)


Copyright © 2018. All rights reserved.