An implementation of {@link SourceRunner} that can drive a{@link PollableSource}.
A {@link PollableSourceRunner} wraps a {@link PollableSource} in the requiredrun loop in order for it to operate. Internally, metrics and counters are kept such that a source that returns a {@link PollableSource.Status} of{@code BACKOFF} causes the run loop to do exactly that. There's a maximumbackoff period of 500ms. A source that returns {@code READY} is immediatelyinvoked. Note that {@code BACKOFF} is merely a hint to the runner; it neednot be strictly adhered to.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|