Package | Description |
---|---|
com.datastax.driver.core.policies |
Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
static LatencyAwarePolicy.Builder |
LatencyAwarePolicy.builder(LoadBalancingPolicy childPolicy)
Creates a new latency aware policy builder given the child policy
that the resulting policy should wrap.
|
LatencyAwarePolicy.Builder |
LatencyAwarePolicy.Builder.withExclusionThreshold(double exclusionThreshold)
Sets the exclusion threshold to use for the resulting latency aware policy.
|
LatencyAwarePolicy.Builder |
LatencyAwarePolicy.Builder.withMininumMeasurements(int minMeasure)
Sets the minimimum number of measurements per-host to consider for
the resulting latency aware policy.
|
LatencyAwarePolicy.Builder |
LatencyAwarePolicy.Builder.withRetryPeriod(long retryPeriod,
TimeUnit unit)
Sets the retry period for the resulting latency aware policy.
|
LatencyAwarePolicy.Builder |
LatencyAwarePolicy.Builder.withScale(long scale,
TimeUnit unit)
Sets the scale to use for the resulting latency aware policy.
|
LatencyAwarePolicy.Builder |
LatencyAwarePolicy.Builder.withUpdateRate(long updateRate,
TimeUnit unit)
Sets the update rate for the resulting latency aware policy.
|
Copyright © 2014. All Rights Reserved.