com.netflix.astyanax.connectionpool
Interface ConnectionPoolConfiguration

All Known Implementing Classes:
ConnectionPoolConfigurationImpl

public interface ConnectionPoolConfiguration


Method Summary
 BadHostDetector getBadHostDetector()
          TODO
 int getConnectionLimiterMaxPendingCount()
          Maximum number of connection attempts in a given window
 int getConnectionLimiterWindowSize()
          Window size for limiting the number of connection open requests
 int getConnectTimeout()
          Socket connect timeout
 int getInitConnsPerHost()
          Initial number of connections created when a connection pool is started
 float getLatencyAwareBadnessThreshold()
          Return the threshold after which a host will not be considered good enough for executing operations.
 int getLatencyAwareResetInterval()
           
 float getLatencyAwareSentinelCompare()
          Sentinel compare value for Phi Accrual
 int getLatencyAwareUpdateInterval()
           
 int getLatencyAwareWindowSize()
          Latency samples window size for scoring algorithm
 LatencyScoreStrategy getLatencyScoreStrategy()
          TODO
 int getMaxBlockedThreadsPerHost()
          Get max number of blocked clients for a host.
 int getMaxConns()
          Maximum number of connections in the pool, not used by all connection pool implementations
 int getMaxConnsPerHost()
          Maximum number of connections to allocate for a single host's pool
 int getMaxFailoverCount()
          Get the max number of failover attempts
 int getMaxOperationsPerConnection()
          Maximum allowed operations per connections before forcing the connection to close
 int getMaxPendingConnectionsPerHost()
          Maximum number of pending connect attempts per host
 int getMaxTimeoutCount()
          Number of allowed timeouts within getTimeoutWindow() milliseconds
 int getMaxTimeoutWhenExhausted()
          Maximum amount of time to wait for a connection to free up when a connection pool is exhausted.
 String getName()
          Unique name assigned to this connection pool
 int getPort()
          Data port to be used when no port is specified to a list of seeds or when doing a ring describe since the ring describe does not include a host
 RetryBackoffStrategy getRetryBackoffStrategy()
          Return the backoff strategy to use.
 int getRetryDelaySlice()
          TODO
 int getRetryMaxDelaySlice()
          TODO
 int getRetrySuspendWindow()
          TODO
 List<Host> getSeedHosts()
          Return a list of Host objects from the list of seeds returned by getSeeds().
 String getSeeds()
          List of comma delimited host:port combinations.
 int getSocketTimeout()
          Socket read/write timeout
 int getTimeoutWindow()
          Shut down a host if it times out too many time within this window
 

Method Detail

getLatencyScoreStrategy

LatencyScoreStrategy getLatencyScoreStrategy()
TODO

Returns:

getBadHostDetector

BadHostDetector getBadHostDetector()
TODO

Returns:

getPort

int getPort()
Data port to be used when no port is specified to a list of seeds or when doing a ring describe since the ring describe does not include a host

Returns:

getName

String getName()
Unique name assigned to this connection pool

Returns:

getMaxConnsPerHost

int getMaxConnsPerHost()
Maximum number of connections to allocate for a single host's pool

Returns:

getInitConnsPerHost

int getInitConnsPerHost()
Initial number of connections created when a connection pool is started

Returns:

getMaxConns

int getMaxConns()
Maximum number of connections in the pool, not used by all connection pool implementations

Returns:

getMaxTimeoutWhenExhausted

int getMaxTimeoutWhenExhausted()
Maximum amount of time to wait for a connection to free up when a connection pool is exhausted.

Returns:

getMaxFailoverCount

int getMaxFailoverCount()
Get the max number of failover attempts

Returns:

getRetryBackoffStrategy

RetryBackoffStrategy getRetryBackoffStrategy()
Return the backoff strategy to use.

Returns:
See Also:
RetryBackoffStrategy

getSeeds

String getSeeds()
List of comma delimited host:port combinations. If port is not provided then getPort() will be used by default. This list must contain at least one valid host other it would not be possible to do a ring describe.

Returns:

getSeedHosts

List<Host> getSeedHosts()
Return a list of Host objects from the list of seeds returned by getSeeds(). This list must contain at least one valid host other it would not be possible to do a ring describe.

Returns:

getSocketTimeout

int getSocketTimeout()
Socket read/write timeout

Returns:

getConnectTimeout

int getConnectTimeout()
Socket connect timeout

Returns:

getConnectionLimiterWindowSize

int getConnectionLimiterWindowSize()
Window size for limiting the number of connection open requests

Returns:

getConnectionLimiterMaxPendingCount

int getConnectionLimiterMaxPendingCount()
Maximum number of connection attempts in a given window

Returns:

getLatencyAwareWindowSize

int getLatencyAwareWindowSize()
Latency samples window size for scoring algorithm

Returns:

getLatencyAwareSentinelCompare

float getLatencyAwareSentinelCompare()
Sentinel compare value for Phi Accrual

Returns:

getLatencyAwareBadnessThreshold

float getLatencyAwareBadnessThreshold()
Return the threshold after which a host will not be considered good enough for executing operations.

Returns:
Valid values are 0 to 1

getLatencyAwareUpdateInterval

int getLatencyAwareUpdateInterval()
Returns:

getLatencyAwareResetInterval

int getLatencyAwareResetInterval()
Returns:

getMaxPendingConnectionsPerHost

int getMaxPendingConnectionsPerHost()
Maximum number of pending connect attempts per host

Returns:

getMaxBlockedThreadsPerHost

int getMaxBlockedThreadsPerHost()
Get max number of blocked clients for a host.

Returns:

getTimeoutWindow

int getTimeoutWindow()
Shut down a host if it times out too many time within this window

Returns:

getMaxTimeoutCount

int getMaxTimeoutCount()
Number of allowed timeouts within getTimeoutWindow() milliseconds

Returns:

getRetrySuspendWindow

int getRetrySuspendWindow()
TODO

Returns:

getRetryMaxDelaySlice

int getRetryMaxDelaySlice()
TODO

Returns:

getRetryDelaySlice

int getRetryDelaySlice()
TODO

Returns:

getMaxOperationsPerConnection

int getMaxOperationsPerConnection()
Maximum allowed operations per connections before forcing the connection to close

Returns:


Copyright © 2012. All Rights Reserved.