|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.Controller.Updater<S>
public class Controller.Updater<S>
An abstract updater task used to execute timed tasks in the
background and push updates to the UI.
| Nested Class Summary | |
|---|---|
(package private) class |
Controller.Updater.Executor
The runnable that is used to execute method on source when executed the application service. |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Controller.Updater(int pollingInterval,
S source,
String method)
Create a new instance of the worker with the specified values. |
|
| Method Summary | |
|---|---|
protected void |
setMethod(String method)
Set method. |
protected void |
setPollingInterval(int pollingInterval)
Set pollingInterval. |
protected void |
setSource(S source)
Set source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int pollingInterval
protected S source
protected String method
Method that is to be invoked on source.
| Constructor Detail |
|---|
public Controller.Updater(int pollingInterval,
S source,
String method)
pollingInterval - The pollingInterval to set.source - The source to set.method - The method to set.| Method Detail |
|---|
protected void setPollingInterval(int pollingInterval)
pollingInterval.
pollingInterval - The value to set.protected void setSource(S source)
source.
source - The value to set.protected void setMethod(String method)
method.
method - The value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||