net.sf.asyncobjects.util.timer
Class TimerTaskAdapter.InternalTimerTask

java.lang.Object
  extended by net.sf.asyncobjects.AsyncUnicastServer<ATimerTask>
      extended by net.sf.asyncobjects.util.timer.TimerTaskAdapter.InternalTimerTask
All Implemented Interfaces:
AsyncObject, ExplicitSharing, ATimerTask
Enclosing class:
TimerTaskAdapter

public final class TimerTaskAdapter.InternalTimerTask
extends AsyncUnicastServer<ATimerTask>
implements ATimerTask

Internal class that acutally implemetns interface


Method Summary
 void accepted(ACallable<Boolean> cancelAction)
          This method is called when task were accepted to timer
 void run(long scheduledExecutionTime)
          Run the task
 
Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer
dereference, export, isImmediate, myVat, promise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Method Detail

run

public void run(long scheduledExecutionTime)
Description copied from interface: ATimerTask
Run the task

Specified by:
run in interface ATimerTask
Parameters:
scheduledExecutionTime - a time when the task was scheduled. it might be used to check if the task is too late.
See Also:
ATimerTask.run(long)

accepted

public void accepted(ACallable<Boolean> cancelAction)
Description copied from interface: ATimerTask
This method is called when task were accepted to timer

Specified by:
accepted in interface ATimerTask
See Also:
ATimerTask.accepted(net.sf.asyncobjects.util.callbacks.ACallable)


Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.