com.alibaba.druid.pool.ha.balance
Class RoundRobinBlancer

java.lang.Object
  extended by com.alibaba.druid.pool.ha.balance.AbstractBalancer
      extended by com.alibaba.druid.pool.ha.balance.RoundRobinBlancer
All Implemented Interfaces:
Balancer

public class RoundRobinBlancer
extends AbstractBalancer


Constructor Summary
RoundRobinBlancer()
           
 
Method Summary
 void afterDataSourceChanged(DataSourceChangedEvent event)
           
 MultiConnectionHolder getConnection(MultiDataSourceConnection conn, String sql)
           
 long getIndexErrorCount()
           
 
Methods inherited from class com.alibaba.druid.pool.ha.balance.AbstractBalancer
getMultiDataSource, init, isInited
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinBlancer

public RoundRobinBlancer()
Method Detail

afterDataSourceChanged

public void afterDataSourceChanged(DataSourceChangedEvent event)

getConnection

public MultiConnectionHolder getConnection(MultiDataSourceConnection conn,
                                           String sql)
                                    throws SQLException
Throws:
SQLException

getIndexErrorCount

public long getIndexErrorCount()


Copyright © 2012 Alibaba Group. All Rights Reserved.