TimerTask.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_TIMERTASK_H
00002 #define JAVA_UTIL_TIMERTASK_H 1
00003 
00004 #ifndef JAVA_LANG_SYNC_H
00005 #include <java_lang/Sync.h>
00006 #endif /* JAVA_LANG_SYNC_H */
00007 #ifndef JAVA_LANG_RUNNABLE_H
00008 #include <java_lang/Runnable.h>
00009 #endif /* JAVA_LANG_RUNNABLE_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00022     class JAVA_UTIL_SPEC TimerTask 
00023       : public Runnable
00024       , public Sync
00025       , public Comparable {
00026 
00027     public:
00028 
00032         enum TASK_STATE {
00033 
00037           VIRGIN,
00038  
00043           SCHEDULED, 
00044 
00049           EXECUTED, 
00050 
00054           CANCELLED
00055 
00056         };
00057 
00058         TimerTask();
00059 
00063         virtual void run() = 0;
00064 
00080         virtual jint compareTo(const Object& o) const;
00081 
00104         virtual jboolean cancel();
00105 
00134         virtual jlong scheduledExecutionTime();
00135 
00136         jint state;
00137         jlong nextExecutionTime;
00138         jlong period;
00139 
00140     private:
00141 
00142         REGISTER_MEMBERS;
00143 
00144       };
00145 
00146   } // namespace util
00147 } // namespace java
00148 
00149 #endif /* JAVA_UTIL_TIMERTASK_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3