public abstract class GatewayFunctionPoller<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected VisionClientContext |
context |
protected LoggerEx |
log |
protected long |
refreshRate |
Constructor and Description |
---|
GatewayFunctionPoller(LoggerEx log,
long refreshRate) |
Modifier and Type | Method and Description |
---|---|
long |
getRefreshRate() |
protected abstract void |
onValueReceived(T value,
int quality)
This will be called when the object has been retrieved.
|
protected abstract T |
runFunction(GatewayConnection con)
Run the actual function to get data from the gateway
|
protected void |
scheduleQuery() |
void |
setRefreshRate(long refreshRate) |
void |
shutdown() |
void |
startup(VisionClientContext context) |
protected abstract java.lang.String |
verb()
Return a verb that describes what this poller does.
|
protected LoggerEx log
protected long refreshRate
protected VisionClientContext context
public GatewayFunctionPoller(LoggerEx log, long refreshRate)
public long getRefreshRate()
public void setRefreshRate(long refreshRate)
public void startup(VisionClientContext context)
public void shutdown()
protected void scheduleQuery()
protected abstract T runFunction(GatewayConnection con) throws GatewayException
GatewayException
protected abstract void onValueReceived(T value, int quality)
protected abstract java.lang.String verb()