com.grandcentral.appstats
Interface UpdateTaskListener
- public interface UpdateTaskListener
This interface allows notification when a task needs to be updated
because it is about to be queried for its current Stats.
This allows you to defer the creation/maintenance of Stat objects until
they are needed by appstats.
To use, create a new child Task and register this listener with it.
Then just create/update Stats in the Task passed into updateTask().
Note that short lived objects will need to deregister themselves with the
parent Task in order for them to be garbage collected.
- Version:
- $Version: $
- Author:
- Adrian Dorsman, Taras Shkvarchuk
- See Also:
Task.registerUpdateTaskListener(com.grandcentral.appstats.UpdateTaskListener)
updateTask
public void updateTask(Task t)
throws DatatypeMismatchException
- Parameters:
t - the task that was registered- Throws:
DatatypeMismatchException -