2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_util_concurrent_FutureTask__
5 #define __java_util_concurrent_FutureTask__
9 #include <java/lang/Object.h>
11 class java::util::concurrent::FutureTask
: public ::java::lang::Object
15 FutureTask(::java::util::concurrent::Callable
*);
16 FutureTask(::java::lang::Runnable
*, ::java::lang::Object
*);
17 virtual jboolean
isCancelled();
18 virtual jboolean
isDone();
19 virtual jboolean
cancel(jboolean
);
20 virtual ::java::lang::Object
* get();
21 virtual ::java::lang::Object
* get(jlong
, ::java::util::concurrent::TimeUnit
*);
22 public: // actually protected
24 virtual void set(::java::lang::Object
*);
25 virtual void setException(::java::lang::Throwable
*);
28 public: // actually protected
29 virtual jboolean
runAndReset();
31 ::java::util::concurrent::FutureTask$Sync
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) sync
;
33 static ::java::lang::Class
class$
;
36 #endif // __java_util_concurrent_FutureTask__