public static class

AstyanaxContext.Builder

extends Object
java.lang.Object
   ↳ com.netflix.astyanax.AstyanaxContext.Builder

Summary

Fields
protected AstyanaxConfiguration asConfig
protected String clusterName
protected ConnectionPool<?> cp
protected ConnectionPoolConfiguration cpConfig
protected NodeDiscovery discovery
protected hostSupplier
protected String keyspaceName
protected ConnectionPoolMonitor monitor
protected KeyspaceTracerFactory tracerFactory
Public Constructors
AstyanaxContext.Builder()
Public Methods
<T> AstyanaxContext<Cluster> buildCluster(AstyanaxTypeFactory<T> factory)
<T> AstyanaxContext<Keyspace> buildKeyspace(AstyanaxTypeFactory<T> factory)
AstyanaxContext.Builder forCluster(String clusterName)
AstyanaxContext.Builder forKeyspace(String keyspaceName)
NodeDiscoveryType getNodeDiscoveryType()
AstyanaxContext.Builder withAstyanaxConfiguration(AstyanaxConfiguration asConfig)
AstyanaxContext.Builder withConnectionPoolConfiguration(ConnectionPoolConfiguration cpConfig)
AstyanaxContext.Builder withConnectionPoolMonitor(ConnectionPoolMonitor monitor)
AstyanaxContext.Builder withHostSupplier( tokenRangeSupplier)
AstyanaxContext.Builder withTracerFactory(KeyspaceTracerFactory tracerFactory)
Protected Methods
<T> ConnectionPool<T> createConnectionPool(ConnectionFactory<T> connectionFactory)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected AstyanaxConfiguration asConfig

protected String clusterName

protected ConnectionPool<?> cp

protected ConnectionPoolConfiguration cpConfig

protected NodeDiscovery discovery

protected hostSupplier

protected String keyspaceName

protected ConnectionPoolMonitor monitor

protected KeyspaceTracerFactory tracerFactory

Public Constructors

public AstyanaxContext.Builder ()

Public Methods

public AstyanaxContext<Cluster> buildCluster (AstyanaxTypeFactory<T> factory)

public AstyanaxContext<Keyspace> buildKeyspace (AstyanaxTypeFactory<T> factory)

public AstyanaxContext.Builder forCluster (String clusterName)

public AstyanaxContext.Builder forKeyspace (String keyspaceName)

public NodeDiscoveryType getNodeDiscoveryType ()

public AstyanaxContext.Builder withAstyanaxConfiguration (AstyanaxConfiguration asConfig)

public AstyanaxContext.Builder withConnectionPoolConfiguration (ConnectionPoolConfiguration cpConfig)

public AstyanaxContext.Builder withConnectionPoolMonitor (ConnectionPoolMonitor monitor)

public AstyanaxContext.Builder withHostSupplier ( tokenRangeSupplier)

public AstyanaxContext.Builder withTracerFactory (KeyspaceTracerFactory tracerFactory)

Protected Methods

protected ConnectionPool<T> createConnectionPool (ConnectionFactory<T> connectionFactory)