1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_util_concurrent_ScheduledThreadPoolExecutor__
|
5 |
|
|
#define __java_util_concurrent_ScheduledThreadPoolExecutor__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/util/concurrent/ThreadPoolExecutor.h>
|
10 |
|
|
|
11 |
|
|
class java::util::concurrent::ScheduledThreadPoolExecutor : public ::java::util::concurrent::ThreadPoolExecutor
|
12 |
|
|
{
|
13 |
|
|
|
14 |
|
|
public: // actually package-private
|
15 |
|
|
virtual jlong now();
|
16 |
|
|
private:
|
17 |
|
|
void delayedExecute(::java::lang::Runnable *);
|
18 |
|
|
void cancelUnwantedTasks();
|
19 |
|
|
public:
|
20 |
|
|
virtual jboolean remove(::java::lang::Runnable *);
|
21 |
|
|
public: // actually protected
|
22 |
|
|
virtual ::java::util::concurrent::RunnableScheduledFuture * decorateTask(::java::lang::Runnable *, ::java::util::concurrent::RunnableScheduledFuture *);
|
23 |
|
|
virtual ::java::util::concurrent::RunnableScheduledFuture * decorateTask(::java::util::concurrent::Callable *, ::java::util::concurrent::RunnableScheduledFuture *);
|
24 |
|
|
public:
|
25 |
|
|
ScheduledThreadPoolExecutor(jint);
|
26 |
|
|
ScheduledThreadPoolExecutor(jint, ::java::util::concurrent::ThreadFactory *);
|
27 |
|
|
ScheduledThreadPoolExecutor(jint, ::java::util::concurrent::RejectedExecutionHandler *);
|
28 |
|
|
ScheduledThreadPoolExecutor(jint, ::java::util::concurrent::ThreadFactory *, ::java::util::concurrent::RejectedExecutionHandler *);
|
29 |
|
|
virtual ::java::util::concurrent::ScheduledFuture * schedule(::java::lang::Runnable *, jlong, ::java::util::concurrent::TimeUnit *);
|
30 |
|
|
virtual ::java::util::concurrent::ScheduledFuture * schedule(::java::util::concurrent::Callable *, jlong, ::java::util::concurrent::TimeUnit *);
|
31 |
|
|
virtual ::java::util::concurrent::ScheduledFuture * scheduleAtFixedRate(::java::lang::Runnable *, jlong, jlong, ::java::util::concurrent::TimeUnit *);
|
32 |
|
|
virtual ::java::util::concurrent::ScheduledFuture * scheduleWithFixedDelay(::java::lang::Runnable *, jlong, jlong, ::java::util::concurrent::TimeUnit *);
|
33 |
|
|
virtual void execute(::java::lang::Runnable *);
|
34 |
|
|
virtual ::java::util::concurrent::Future * submit(::java::lang::Runnable *);
|
35 |
|
|
virtual ::java::util::concurrent::Future * submit(::java::lang::Runnable *, ::java::lang::Object *);
|
36 |
|
|
virtual ::java::util::concurrent::Future * submit(::java::util::concurrent::Callable *);
|
37 |
|
|
virtual void setContinueExistingPeriodicTasksAfterShutdownPolicy(jboolean);
|
38 |
|
|
virtual jboolean getContinueExistingPeriodicTasksAfterShutdownPolicy();
|
39 |
|
|
virtual void setExecuteExistingDelayedTasksAfterShutdownPolicy(jboolean);
|
40 |
|
|
virtual jboolean getExecuteExistingDelayedTasksAfterShutdownPolicy();
|
41 |
|
|
virtual void shutdown();
|
42 |
|
|
virtual ::java::util::List * shutdownNow();
|
43 |
|
|
virtual ::java::util::concurrent::BlockingQueue * getQueue();
|
44 |
|
|
public: // actually package-private
|
45 |
|
|
static ::java::util::concurrent::atomic::AtomicLong * access$0();
|
46 |
|
|
static ::java::util::concurrent::BlockingQueue * access$1(::java::util::concurrent::ScheduledThreadPoolExecutor *);
|
47 |
|
|
private:
|
48 |
|
|
jboolean volatile __attribute__((aligned(__alignof__( ::java::util::concurrent::ThreadPoolExecutor)))) continueExistingPeriodicTasksAfterShutdown;
|
49 |
|
|
jboolean volatile executeExistingDelayedTasksAfterShutdown;
|
50 |
|
|
static ::java::util::concurrent::atomic::AtomicLong * sequencer;
|
51 |
|
|
static jlong NANO_ORIGIN;
|
52 |
|
|
public:
|
53 |
|
|
static ::java::lang::Class class$;
|
54 |
|
|
};
|
55 |
|
|
|
56 |
|
|
#endif // __java_util_concurrent_ScheduledThreadPoolExecutor__
|