public interface PollingStrategy
PollingStrategies for some common strategies.| Modifier and Type | Method and Description |
|---|---|
long |
nextPoll(int numPolls,
long startTime)
Return the number of milliseconds to wait before the next poll, given the time that polling began, and the number
of polls already attempted.
|
long nextPoll(int numPolls,
long startTime)
numPolls - the number of times the status was polled already. Starts at 0.startTime - the timestamp in milliseconds that polling began.Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.