public class Controller.Updater<S> extends Object implements TaskQueueHandle
push updates to the UI.| Modifier and Type | Field and Description |
|---|---|
protected String |
method
The name of the
Method that is to be invoked on source. |
protected int |
pollingInterval
The polling interval at which client must poll server for updates.
|
protected S |
source
The source object which contains the method that is to be invoked
each time this task is executed.
|
| Constructor and Description |
|---|
Updater(int pollingInterval,
S source,
String method)
Create a new instance of the worker with the specified values.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setMethod(String method)
Set
method. |
protected void |
setPollingInterval(int pollingInterval)
Set
pollingInterval. |
protected void |
setSource(S source)
Set
source. |
protected int pollingInterval
protected S source
public Updater(int pollingInterval,
S source,
String method)
pollingInterval - The pollingInterval to set.source - The source to set.method - The method to set.protected void setPollingInterval(int pollingInterval)
pollingInterval.pollingInterval - The value to set.