public class Poller<V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
Poller(Entity entity,
AbstractFeed feed,
boolean onlyIfServiceUp) |
Poller(Entity entity,
boolean onlyIfServiceUp)
Deprecated.
since 0.12.0 pass in feed
|
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(Entity entity, boolean onlyIfServiceUp)
public Poller(Entity entity, AbstractFeed feed, 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