Package | Description |
---|---|
org.apache.twill.zookeeper |
This package provides functionality for ZooKeeper interactions.
|
Modifier and Type | Method and Description |
---|---|
static RetryStrategy |
RetryStrategies.exponentialDelay(long baseDelay,
long maxDelay,
TimeUnit delayUnit)
Creates a
RetryStrategy that will increase delay exponentially between each retries. |
static RetryStrategy |
RetryStrategies.fixDelay(long delay,
TimeUnit delayUnit)
Creates a
RetryStrategy that imposes a fix delay between each retries. |
static RetryStrategy |
RetryStrategies.limit(int limit,
RetryStrategy strategy)
Creates a
RetryStrategy that retries maximum given number of times, with the actual
delay behavior delegated to another RetryStrategy . |
static RetryStrategy |
RetryStrategies.noRetry() |
static RetryStrategy |
RetryStrategies.timeLimit(long maxElapseTime,
TimeUnit timeUnit,
RetryStrategy strategy)
Creates a
RetryStrategy that will retry until maximum amount of time has been passed since the request,
with the actual delay behavior delegated to another RetryStrategy . |
Modifier and Type | Method and Description |
---|---|
static RetryStrategy |
RetryStrategies.limit(int limit,
RetryStrategy strategy)
Creates a
RetryStrategy that retries maximum given number of times, with the actual
delay behavior delegated to another RetryStrategy . |
static ZKClient |
ZKClients.retryOnFailure(ZKClient client,
RetryStrategy retryStrategy)
Creates a
ZKClient that will retry interim failure (e.g. |
static RetryStrategy |
RetryStrategies.timeLimit(long maxElapseTime,
TimeUnit timeUnit,
RetryStrategy strategy)
Creates a
RetryStrategy that will retry until maximum amount of time has been passed since the request,
with the actual delay behavior delegated to another RetryStrategy . |
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.