public class Poller<V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
Poller(EntityLocal entity)
Deprecated.
since 0.7.0, pass in whether should run onlyIfServiceUp
|
Poller(EntityLocal entity,
boolean onlyIfServiceUp) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning() |
void |
scheduleAtFixedRate(java.util.concurrent.Callable<V> job,
PollHandler<? super V> handler,
Duration period) |
void |
scheduleAtFixedRate(java.util.concurrent.Callable<V> job,
PollHandler<? super V> handler,
long period) |
void |
start() |
void |
stop() |
void |
submit(java.util.concurrent.Callable<?> job)
Submits a one-off poll job; recommended that callers supply to-String so that task has a decent description
|
java.lang.String |
toString() |
@Deprecated public Poller(EntityLocal entity)
public Poller(EntityLocal entity, boolean onlyIfServiceUp)
public void submit(java.util.concurrent.Callable<?> job)
public void scheduleAtFixedRate(java.util.concurrent.Callable<V> job, PollHandler<? super V> handler, long period)
public void scheduleAtFixedRate(java.util.concurrent.Callable<V> job, PollHandler<? super V> handler, Duration period)
public void start()
public void stop()
public boolean isRunning()
public java.lang.String toString()
toString
in class java.lang.Object