public class LatencyAwareHClientPool extends ConcurrentHClientPool
| Constructor and Description |
|---|
LatencyAwareHClientPool(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
HClient |
borrowClient() |
void |
clear() |
boolean |
equals(Object obj) |
void |
releaseClient(HClient client) |
void |
resetIntervel() |
getCassandraHost, getExhaustedTime, getIsActive, getMaxActive, getName, getNumActive, getNumBeforeExhausted, getNumBlockedThreads, getNumIdle, getStatusAsString, isExhausted, shutdownpublic LatencyAwareHClientPool(HClientFactory clientFactory, CassandraHost host, CassandraClientMonitor monitor)
public HClient borrowClient() throws HectorException
borrowClient in interface HClientPoolborrowClient in class ConcurrentHClientPoolHectorExceptionpublic void releaseClient(HClient client) throws HectorException
releaseClient in interface HClientPoolreleaseClient in class ConcurrentHClientPoolHectorExceptionpublic void resetIntervel()
public void clear()
Copyright © 2014. All Rights Reserved.