com.netflix.astyanax
Interface AstyanaxConfiguration

All Known Implementing Classes:
AstyanaxConfigurationImpl

public interface AstyanaxConfiguration

Interface defining all astyanax API configuration parameters.


Method Summary
 java.util.concurrent.ExecutorService getAsyncExecutor()
          Return the maximum number of allows async threads to executeAsync()
 com.netflix.astyanax.Clock getClock()
          Return clock to use when setting timestamps for column insertion and deletion operations.
 com.netflix.astyanax.connectionpool.impl.ConnectionPoolType getConnectionPoolType()
          Type of connection pool to use for this instance
 java.lang.String getCqlVersion()
          Get the CQL version to set when sending CQL queries
 ConsistencyLevel getDefaultReadConsistencyLevel()
          Default consistency level used when reading from the cluster.
 ConsistencyLevel getDefaultWriteConsistencyLevel()
          Default consistency level used when reading from the cluster.
 int getDiscoveryDelayInSeconds()
          Fixed delay for node disocvery refresh
 com.netflix.astyanax.connectionpool.NodeDiscoveryType getDiscoveryType()
          Get type of node discovery to perform
 com.netflix.astyanax.partitioner.Partitioner getPartitioner(java.lang.String partitionerName)
           
 com.netflix.astyanax.retry.RetryPolicy getRetryPolicy()
          TODO
 java.lang.String getTargetCassandraVersion()
           
 

Method Detail

getRetryPolicy

com.netflix.astyanax.retry.RetryPolicy getRetryPolicy()
TODO


getDefaultReadConsistencyLevel

ConsistencyLevel getDefaultReadConsistencyLevel()
Default consistency level used when reading from the cluster. This value can be overwritten on the Query operations (returned by Keyspace.prepareXXQuery) by calling Query.setConsistencyLevel().


getDefaultWriteConsistencyLevel

ConsistencyLevel getDefaultWriteConsistencyLevel()
Default consistency level used when reading from the cluster. This value can be overwritten on MutationBatch operation (returned by Keyspace.prepareMutationBatch) by calling MutationBatch.setConsistencyLevel().


getClock

com.netflix.astyanax.Clock getClock()
Return clock to use when setting timestamps for column insertion and deletion operations.


getAsyncExecutor

java.util.concurrent.ExecutorService getAsyncExecutor()
Return the maximum number of allows async threads to executeAsync()


getDiscoveryDelayInSeconds

int getDiscoveryDelayInSeconds()
Fixed delay for node disocvery refresh


getDiscoveryType

com.netflix.astyanax.connectionpool.NodeDiscoveryType getDiscoveryType()
Get type of node discovery to perform


getConnectionPoolType

com.netflix.astyanax.connectionpool.impl.ConnectionPoolType getConnectionPoolType()
Type of connection pool to use for this instance


getCqlVersion

java.lang.String getCqlVersion()
Get the CQL version to set when sending CQL queries

Parameters:
cqlVersion -

getTargetCassandraVersion

java.lang.String getTargetCassandraVersion()
Returns:
Returns the major cassandra version (x.x) with which this client is communicating. This is a hack for backwards compatibility when APIs break between version

getPartitioner

com.netflix.astyanax.partitioner.Partitioner getPartitioner(java.lang.String partitionerName)
                                                            throws java.lang.Exception
Returns:
Return the partitioner implementation for the specified partitioner name
Throws:
java.lang.Exception