public class Poller<T>
extends java.lang.Object
| Constructor and Description |
|---|
Poller(Supplier<T> supplier,
Consumer<T> consumer)
|
Poller(Supplier<T> supplier,
Consumer<T> consumer,
boolean paused)
|
| Modifier and Type | Method and Description |
|---|---|
Poller<T> |
pause()
Pausing polling for values from this
Supplier. |
Poller<T> |
resume()
Resume polling values from the
Supplier. |
void |
shutdown()
Shutdown this
Poller and stop the internal thread from polling the supplier. |