| 程序包 | 说明 |
|---|---|
| com.dyngr | |
| com.dyngr.core | |
| com.dyngr.core.strategy |
| 限定符和类型 | 方法和说明 |
|---|---|
PollerBuilder<V> |
PollerBuilder.withStopStrategy(StopStrategy... stopStrategies)
Sets a list of stop strategies used to decide when to stop retrying. polling will stop if any stop strategy's condition is fulfilled.
|
PollerBuilder<V> |
PollerBuilder.withStopStrategy(StopStrategy stopStrategy)
Sets the stop strategy used to decide when to stop retrying.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static StopStrategy |
StopStrategies.join(StopStrategy... stopStrategies)
Joins one or more stop strategies to derive a composite stop strategy.
|
static StopStrategy |
StopStrategies.neverStop()
Returns a stop strategy which never stops retrying.
|
static StopStrategy |
StopStrategies.stopAfterAttempt(int attemptNumber)
Returns a stop strategy which stops after N failed attempts.
|
static StopStrategy |
StopStrategies.stopAfterDelay(long duration,
TimeUnit timeUnit)
Returns a stop strategy which stops after a given delay.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static StopStrategy |
StopStrategies.join(StopStrategy... stopStrategies)
Joins one or more stop strategies to derive a composite stop strategy.
|
| 构造器和说明 |
|---|
DefaultPoller(AttemptMaker<V> maker,
StopStrategy stopStrategy,
WaitStrategy waitStrategy,
ExecutorService executor) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CompositeStopStrategy
A stop strategy composited by a list of strategies and will stop if any of them to say stop.
|
class |
NeverStopStrategy
A stop strategy that never stop.
|
class |
StopAfterAttemptStrategy
A stop strategy which stops after N failed attempts.
|
class |
StopAfterDelayStrategy
A stop strategy that stops after a given period elapsed.
|
class |
StopIfExceptionStrategy
A stop strategy that stops if any exception occurred.
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<StopStrategy> |
CompositeStopStrategy.getStopStrategies() |
| 构造器和说明 |
|---|
CompositeStopStrategy(List<StopStrategy> stopStrategies) |
Copyright © 2019. All rights reserved.