me.prettyprint.cassandra.connection
Interface HClientPool

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

public interface HClientPool
extends PoolMetric


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

Method Detail

borrowClient

HClient borrowClient()
                     throws HectorException
Throws:
HectorException

getCassandraHost

CassandraHost getCassandraHost()

getNumBeforeExhausted

int getNumBeforeExhausted()

isExhausted

boolean isExhausted()

getMaxActive

int getMaxActive()

getStatusAsString

String getStatusAsString()

releaseClient

void releaseClient(HClient client)
                   throws HectorException
Throws:
HectorException

shutdown

void shutdown()


Copyright © 2012. All Rights Reserved.