| 程序包 | 说明 |
|---|---|
| com.dyngr |
| 限定符和类型 | 方法和说明 |
|---|---|
static <V> PollerBuilder<V> |
PollerBuilder.newBuilder()
Constructs a new builder
|
PollerBuilder<V> |
PollerBuilder.polling(AttemptMaker<V> attemptMaker)
Sets the code of actual polling.
|
PollerBuilder<V> |
PollerBuilder.stopIfException(boolean stopIfException)
Set if poller should stop when an exception is thrown.
|
PollerBuilder<V> |
PollerBuilder.withExecutorService(ExecutorService executorService)
Sets the
ExecutorService on which Poller will be running. |
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.
|
PollerBuilder<V> |
PollerBuilder.withWaitStrategy(WaitStrategy... waitStrategies)
Sets a list of wait strategy used to decide how long to sleep between failed attempts.
|
PollerBuilder<V> |
PollerBuilder.withWaitStrategy(WaitStrategy waitStrategy)
Sets the wait strategy used to decide how long to sleep between failed attempts.
|
Copyright © 2019. All rights reserved.