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 ErrorAwarePolicy.Builder |
ErrorAwarePolicy.builder(LoadBalancingPolicy childPolicy)
Creates a new error aware policy builder given the child policy that the resulting policy
should wrap.
|
ErrorAwarePolicy.Builder |
ErrorAwarePolicy.Builder.withErrorsFilter(ErrorAwarePolicy.ErrorFilter errorFilter)
Provides a filter that will decide which errors are counted towards
withMaxErrorsPerMinute(int) . |
ErrorAwarePolicy.Builder |
ErrorAwarePolicy.Builder.withMaxErrorsPerMinute(int maxErrorsPerMinute)
Defines the maximum number of errors allowed per minute for each host.
|
ErrorAwarePolicy.Builder |
ErrorAwarePolicy.Builder.withRetryPeriod(long retryPeriod,
TimeUnit retryPeriodTimeUnit)
Defines the time during which a host is excluded by the policy once it has exceeded
withMaxErrorsPerMinute(int) . |
Copyright © 2012–2024. All rights reserved.