com.alibaba.druid.pool.ha.balance
Interface Balancer

All Known Implementing Classes:
AbstractBalancer, LeastConnectionBalancer, RoundRobinBlancer, WeightBalancer

public interface Balancer


Method Summary
 void afterDataSourceChanged(DataSourceChangedEvent event)
           
 MultiConnectionHolder getConnection(MultiDataSourceConnection connectionProxy, String sql)
           
 void init(MultiDataSource dataSource)
           
 boolean isInited()
           
 

Method Detail

isInited

boolean isInited()

init

void init(MultiDataSource dataSource)

afterDataSourceChanged

void afterDataSourceChanged(DataSourceChangedEvent event)

getConnection

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


Copyright © 2012 Alibaba Group. All Rights Reserved.