Interface CassandraClientPool

    • Method Detail

      • getValidatePartitioner

        com.palantir.common.base.FunctionCheckedException<CassandraClient,​java.lang.Void,​java.lang.Exception> getValidatePartitioner()
      • runOnCassandraServer

        <V,​K extends java.lang.Exception> V runOnCassandraServer​(CassandraServer specifiedServer,
                                                                       com.palantir.common.base.FunctionCheckedException<CassandraClient,​V,​K> fn)
                                                                throws K extends java.lang.Exception
        Throws:
        K extends java.lang.Exception
      • run

        <V,​K extends java.lang.Exception> V run​(com.palantir.common.base.FunctionCheckedException<CassandraClient,​V,​K> fn)
                                               throws K extends java.lang.Exception
        Throws:
        K extends java.lang.Exception
      • runWithRetryOnServer

        <V,​K extends java.lang.Exception> V runWithRetryOnServer​(CassandraServer specifiedServer,
                                                                       com.palantir.common.base.FunctionCheckedException<CassandraClient,​V,​K> fn)
                                                                throws K extends java.lang.Exception
        Throws:
        K extends java.lang.Exception
      • runWithRetry

        <V,​K extends java.lang.Exception> V runWithRetry​(com.palantir.common.base.FunctionCheckedException<CassandraClient,​V,​K> fn)
                                                        throws K extends java.lang.Exception
        Throws:
        K extends java.lang.Exception
      • getRandomServerForKey

        CassandraServer getRandomServerForKey​(byte[] key)
      • shutdown

        void shutdown()