com.netflix.astyanax.impl
Class AstyanaxConfigurationImpl

java.lang.Object
  extended by com.netflix.astyanax.impl.AstyanaxConfigurationImpl
All Implemented Interfaces:
AstyanaxConfiguration

public class AstyanaxConfigurationImpl
extends Object
implements AstyanaxConfiguration


Constructor Summary
AstyanaxConfigurationImpl()
           
 
Method Summary
 ExecutorService getAsyncExecutor()
          Return the maximum number of allows async threads to executeAsync()
 Clock getClock()
          Return clock to use when setting timestamps for column insertion and deletion operations.
 ConnectionPoolType getConnectionPoolType()
          Type of connection pool to use for this instance
 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
 NodeDiscoveryType getDiscoveryType()
          Get type of node discovery to perform
 RetryPolicy getRetryPolicy()
          TODO
 AstyanaxConfigurationImpl setAsyncExecutor(ExecutorService executor)
           
 AstyanaxConfigurationImpl setClock(Clock clock)
           
 AstyanaxConfigurationImpl setConnectionPoolType(ConnectionPoolType connectionPoolType)
           
 AstyanaxConfigurationImpl setDefaultReadConsistencyLevel(ConsistencyLevel cl)
           
 AstyanaxConfigurationImpl setDefaultWriteConsistencyLevel(ConsistencyLevel cl)
           
 AstyanaxConfigurationImpl setDiscoveryDelayInSeconds(int delay)
           
 AstyanaxConfigurationImpl setDiscoveryType(NodeDiscoveryType discoveryType)
           
 AstyanaxConfigurationImpl setRetryPolicy(RetryPolicy retryPolicy)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AstyanaxConfigurationImpl

public AstyanaxConfigurationImpl()
Method Detail

setConnectionPoolType

public AstyanaxConfigurationImpl setConnectionPoolType(ConnectionPoolType connectionPoolType)

getConnectionPoolType

public ConnectionPoolType getConnectionPoolType()
Description copied from interface: AstyanaxConfiguration
Type of connection pool to use for this instance

Specified by:
getConnectionPoolType in interface AstyanaxConfiguration
Returns:

getDefaultReadConsistencyLevel

public ConsistencyLevel getDefaultReadConsistencyLevel()
Description copied from interface: AstyanaxConfiguration
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().

Specified by:
getDefaultReadConsistencyLevel in interface AstyanaxConfiguration
Returns:

setDefaultReadConsistencyLevel

public AstyanaxConfigurationImpl setDefaultReadConsistencyLevel(ConsistencyLevel cl)

getDefaultWriteConsistencyLevel

public ConsistencyLevel getDefaultWriteConsistencyLevel()
Description copied from interface: AstyanaxConfiguration
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().

Specified by:
getDefaultWriteConsistencyLevel in interface AstyanaxConfiguration
Returns:

setDefaultWriteConsistencyLevel

public AstyanaxConfigurationImpl setDefaultWriteConsistencyLevel(ConsistencyLevel cl)

getClock

public Clock getClock()
Description copied from interface: AstyanaxConfiguration
Return clock to use when setting timestamps for column insertion and deletion operations.

Specified by:
getClock in interface AstyanaxConfiguration
Returns:

setClock

public AstyanaxConfigurationImpl setClock(Clock clock)

getAsyncExecutor

public ExecutorService getAsyncExecutor()
Description copied from interface: AstyanaxConfiguration
Return the maximum number of allows async threads to executeAsync()

Specified by:
getAsyncExecutor in interface AstyanaxConfiguration
Returns:

setAsyncExecutor

public AstyanaxConfigurationImpl setAsyncExecutor(ExecutorService executor)

getRetryPolicy

public RetryPolicy getRetryPolicy()
Description copied from interface: AstyanaxConfiguration
TODO

Specified by:
getRetryPolicy in interface AstyanaxConfiguration
Returns:

setRetryPolicy

public AstyanaxConfigurationImpl setRetryPolicy(RetryPolicy retryPolicy)

toString

public String toString()
Overrides:
toString in class Object

getDiscoveryDelayInSeconds

public int getDiscoveryDelayInSeconds()
Description copied from interface: AstyanaxConfiguration
Fixed delay for node disocvery refresh

Specified by:
getDiscoveryDelayInSeconds in interface AstyanaxConfiguration

setDiscoveryDelayInSeconds

public AstyanaxConfigurationImpl setDiscoveryDelayInSeconds(int delay)

getDiscoveryType

public NodeDiscoveryType getDiscoveryType()
Description copied from interface: AstyanaxConfiguration
Get type of node discovery to perform

Specified by:
getDiscoveryType in interface AstyanaxConfiguration
Returns:

setDiscoveryType

public AstyanaxConfigurationImpl setDiscoveryType(NodeDiscoveryType discoveryType)


Copyright © 2012. All Rights Reserved.