net.sf.asyncobjects.util.timer
Interface ATimerTask

All Superinterfaces:
AsyncObject
All Known Implementing Classes:
TimerTaskAdapter.InternalTimerTask

public interface ATimerTask
extends AsyncObject

A timer task. See TimerTaskAdapter for utility that simlifies creation of asynchronous objects that implement this interface.

Author:
const

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 interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Method Detail

accepted

void accepted(ACallable<Boolean> cancelAction)
This method is called when task were accepted to timer

Parameters:
cancelAction -

run

void run(long scheduledExecutionTime)
Run the task

Parameters:
scheduledExecutionTime - a time when the task was scheduled. it might be used to check if the task is too late.
See Also:
TimerTask.run(), TimerTask.scheduledExecutionTime()


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