class Factory.WebService.PollingTask
extends java.util.TimerTask
Modifier and Type | Field and Description |
---|---|
private long |
m_time
Time of the last data event.
|
Constructor and Description |
---|
Factory.WebService.PollingTask(long time)
Creates a new instance of PollingTask.
|
Modifier and Type | Method and Description |
---|---|
private void |
fireDataChanged(wxservice.DataEvent event)
Called when data is received from the web service.
|
private java.util.List<WebSensorData> |
getSensorData(long time)
Provides access to the web service.
|
void |
run()
Polls the web service for data at the scheduled rate.
|
Factory.WebService.PollingTask(long time)
time
- starting time for downloading sensor events.public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
private java.util.List<WebSensorData> getSensorData(long time) throws wxservice.ServiceException
time
- since last access. Zero if first access.wxservice.ServiceException
- if an error occurs.private void fireDataChanged(wxservice.DataEvent event)
event
- contains the received data.