livespace.services
Class EntityContainer.EmitNotificationTask

java.lang.Object
  extended by dsto.dfc.util.Scheduler.Task
      extended by livespace.services.EntityContainer.EmitNotificationTask
All Implemented Interfaces:
Runnable
Enclosing class:
EntityContainer

protected class EntityContainer.EmitNotificationTask
extends Scheduler.Task

Used to emit a notification as a background task.


Field Summary
 
Fields inherited from class dsto.dfc.util.Scheduler.Task
runAt, scheduler
 
Constructor Summary
EntityContainer.EmitNotificationTask(Notification ntfn)
           
 
Method Summary
 void dispose()
          Called when the task is in the scheduling queue (but not currently running) and the scheduler is being shut down.
 void run()
           
 
Methods inherited from class dsto.dfc.util.Scheduler.Task
scheduled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityContainer.EmitNotificationTask

public EntityContainer.EmitNotificationTask(Notification ntfn)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class Scheduler.Task

dispose

public void dispose()
Description copied from class: Scheduler.Task
Called when the task is in the scheduling queue (but not currently running) and the scheduler is being shut down. After this has been called, the task will not get another chance to run in the current scheduler.

The default implementation calls run () if the task is scheduled to be run now, does nothing if not. Subclasses may override as needed.

Overrides:
dispose in class Scheduler.Task


Copyright © 2008 Commonwealth of Australia