Interface CassandraClientPool
-
- All Known Implementing Classes:
CassandraClientPoolImpl
public interface CassandraClientPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<CassandraServer,CassandraClientPoolingContainer>
getCurrentPools()
CassandraServer
getRandomServerForKey(byte[] key)
com.palantir.common.base.FunctionCheckedException<CassandraClient,Void,Exception>
getValidatePartitioner()
<V,K extends Exception>
Vrun(com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn)
<V,K extends Exception>
VrunOnCassandraServer(CassandraServer specifiedServer, com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn)
<V,K extends Exception>
VrunWithRetry(com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn)
<V,K extends Exception>
VrunWithRetryOnServer(CassandraServer specifiedServer, com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn)
void
shutdown()
-
-
-
Method Detail
-
getValidatePartitioner
com.palantir.common.base.FunctionCheckedException<CassandraClient,Void,Exception> getValidatePartitioner()
-
runOnCassandraServer
<V,K extends Exception> V runOnCassandraServer(CassandraServer specifiedServer, com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn) throws K extends Exception
- Throws:
K extends Exception
-
run
<V,K extends Exception> V run(com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn) throws K extends Exception
- Throws:
K extends Exception
-
runWithRetryOnServer
<V,K extends Exception> V runWithRetryOnServer(CassandraServer specifiedServer, com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn) throws K extends Exception
- Throws:
K extends Exception
-
runWithRetry
<V,K extends Exception> V runWithRetry(com.palantir.common.base.FunctionCheckedException<CassandraClient,V,K> fn) throws K extends Exception
- Throws:
K extends Exception
-
getRandomServerForKey
CassandraServer getRandomServerForKey(byte[] key)
-
getCurrentPools
Map<CassandraServer,CassandraClientPoolingContainer> getCurrentPools()
-
shutdown
void shutdown()
-
-