me.prettyprint.cassandra.connection
Interface HClientPool

All Superinterfaces:
PoolMetric
All Known Implementing Classes:
ConcurrentHClientPool, LatencyAwareHClientPool

public interface HClientPool
extends PoolMetric


Method Summary
 HThriftClient borrowClient()
           
 CassandraHost getCassandraHost()
           
 int getMaxActive()
           
 int getNumBeforeExhausted()
           
 String getStatusAsString()
           
 boolean isExhausted()
           
 void releaseClient(HThriftClient client)
           
 void shutdown()
           
 
Methods inherited from interface me.prettyprint.cassandra.connection.PoolMetric
getIsActive, getName, getNumActive, getNumBlockedThreads, getNumIdle
 

Method Detail

borrowClient

HThriftClient borrowClient()
                           throws HectorException
Throws:
HectorException

getCassandraHost

CassandraHost getCassandraHost()

getNumBeforeExhausted

int getNumBeforeExhausted()

isExhausted

boolean isExhausted()

getMaxActive

int getMaxActive()

getStatusAsString

String getStatusAsString()

releaseClient

void releaseClient(HThriftClient client)
                   throws HectorException
Throws:
HectorException

shutdown

void shutdown()


Copyright © 2011. All Rights Reserved.