• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3  *
4  * This code is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 only, as
6  * published by the Free Software Foundation.  Oracle designates this
7  * particular file as subject to the "Classpath" exception as provided
8  * by Oracle in the LICENSE file that accompanied this code.
9  *
10  * This code is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * version 2 for more details (a copy is included in the LICENSE file that
14  * accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License version
17  * 2 along with this work; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21  * or visit www.oracle.com if you need additional information or have any
22  * questions.
23  */
24 
25 /*
26  * This file is available under and governed by the GNU General Public
27  * License version 2 only, as published by the Free Software Foundation.
28  * However, the following notice accompanied the original version of this
29  * file:
30  *
31  * Written by Doug Lea with assistance from members of JCP JSR-166
32  * Expert Group and released to the public domain, as explained at
33  * http://creativecommons.org/publicdomain/zero/1.0/
34  */
35 
36 
37 package java.util.concurrent;
38 
39 @SuppressWarnings({"unchecked", "deprecation", "all"})
40 public class ForkJoinPool extends java.util.concurrent.AbstractExecutorService {
41 
ForkJoinPool()42 public ForkJoinPool() { throw new RuntimeException("Stub!"); }
43 
ForkJoinPool(int parallelism)44 public ForkJoinPool(int parallelism) { throw new RuntimeException("Stub!"); }
45 
ForkJoinPool(int parallelism, java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory factory, java.lang.Thread.UncaughtExceptionHandler handler, boolean asyncMode)46 public ForkJoinPool(int parallelism, java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory factory, java.lang.Thread.UncaughtExceptionHandler handler, boolean asyncMode) { throw new RuntimeException("Stub!"); }
47 
ForkJoinPool(int parallelism, java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory factory, java.lang.Thread.UncaughtExceptionHandler handler, boolean asyncMode, int corePoolSize, int maximumPoolSize, int minimumRunnable, java.util.function.Predicate<? super java.util.concurrent.ForkJoinPool> saturate, long keepAliveTime, java.util.concurrent.TimeUnit unit)48 public ForkJoinPool(int parallelism, java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory factory, java.lang.Thread.UncaughtExceptionHandler handler, boolean asyncMode, int corePoolSize, int maximumPoolSize, int minimumRunnable, java.util.function.Predicate<? super java.util.concurrent.ForkJoinPool> saturate, long keepAliveTime, java.util.concurrent.TimeUnit unit) { throw new RuntimeException("Stub!"); }
49 
awaitQuiescence(long timeout, java.util.concurrent.TimeUnit unit)50 public boolean awaitQuiescence(long timeout, java.util.concurrent.TimeUnit unit) { throw new RuntimeException("Stub!"); }
51 
awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)52 public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException { throw new RuntimeException("Stub!"); }
53 
54 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_OPENJDK_21_V1_APIS)
close()55 public void close() { throw new RuntimeException("Stub!"); }
56 
commonPool()57 public static java.util.concurrent.ForkJoinPool commonPool() { throw new RuntimeException("Stub!"); }
58 
drainTasksTo(java.util.Collection<? super java.util.concurrent.ForkJoinTask<?>> c)59 protected int drainTasksTo(java.util.Collection<? super java.util.concurrent.ForkJoinTask<?>> c) { throw new RuntimeException("Stub!"); }
60 
execute(java.lang.Runnable task)61 public void execute(java.lang.Runnable task) { throw new RuntimeException("Stub!"); }
62 
execute(java.util.concurrent.ForkJoinTask<?> task)63 public void execute(java.util.concurrent.ForkJoinTask<?> task) { throw new RuntimeException("Stub!"); }
64 
65 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_OPENJDK_21_V1_APIS)
externalSubmit(java.util.concurrent.ForkJoinTask<T> task)66 public <T> java.util.concurrent.ForkJoinTask<T> externalSubmit(java.util.concurrent.ForkJoinTask<T> task) { throw new RuntimeException("Stub!"); }
67 
getActiveThreadCount()68 public int getActiveThreadCount() { throw new RuntimeException("Stub!"); }
69 
getAsyncMode()70 public boolean getAsyncMode() { throw new RuntimeException("Stub!"); }
71 
getCommonPoolParallelism()72 public static int getCommonPoolParallelism() { throw new RuntimeException("Stub!"); }
73 
getFactory()74 public java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory getFactory() { throw new RuntimeException("Stub!"); }
75 
getParallelism()76 public int getParallelism() { throw new RuntimeException("Stub!"); }
77 
getPoolSize()78 public int getPoolSize() { throw new RuntimeException("Stub!"); }
79 
getQueuedSubmissionCount()80 public int getQueuedSubmissionCount() { throw new RuntimeException("Stub!"); }
81 
getQueuedTaskCount()82 public long getQueuedTaskCount() { throw new RuntimeException("Stub!"); }
83 
getRunningThreadCount()84 public int getRunningThreadCount() { throw new RuntimeException("Stub!"); }
85 
getStealCount()86 public long getStealCount() { throw new RuntimeException("Stub!"); }
87 
getUncaughtExceptionHandler()88 public java.lang.Thread.UncaughtExceptionHandler getUncaughtExceptionHandler() { throw new RuntimeException("Stub!"); }
89 
hasQueuedSubmissions()90 public boolean hasQueuedSubmissions() { throw new RuntimeException("Stub!"); }
91 
invoke(java.util.concurrent.ForkJoinTask<T> task)92 public <T> T invoke(java.util.concurrent.ForkJoinTask<T> task) { throw new RuntimeException("Stub!"); }
93 
invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks)94 public <T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks) { throw new RuntimeException("Stub!"); }
95 
invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks, long timeout, java.util.concurrent.TimeUnit unit)96 public <T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException { throw new RuntimeException("Stub!"); }
97 
invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks)98 public <T> T invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException { throw new RuntimeException("Stub!"); }
99 
invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks, long timeout, java.util.concurrent.TimeUnit unit)100 public <T> T invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks, long timeout, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException { throw new RuntimeException("Stub!"); }
101 
isQuiescent()102 public boolean isQuiescent() { throw new RuntimeException("Stub!"); }
103 
isShutdown()104 public boolean isShutdown() { throw new RuntimeException("Stub!"); }
105 
isTerminated()106 public boolean isTerminated() { throw new RuntimeException("Stub!"); }
107 
isTerminating()108 public boolean isTerminating() { throw new RuntimeException("Stub!"); }
109 
110 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_OPENJDK_21_V1_APIS)
lazySubmit(java.util.concurrent.ForkJoinTask<T> task)111 public <T> java.util.concurrent.ForkJoinTask<T> lazySubmit(java.util.concurrent.ForkJoinTask<T> task) { throw new RuntimeException("Stub!"); }
112 
managedBlock(java.util.concurrent.ForkJoinPool.ManagedBlocker blocker)113 public static void managedBlock(java.util.concurrent.ForkJoinPool.ManagedBlocker blocker) throws java.lang.InterruptedException { throw new RuntimeException("Stub!"); }
114 
newTaskFor(java.lang.Runnable runnable, T value)115 protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.lang.Runnable runnable, T value) { throw new RuntimeException("Stub!"); }
116 
newTaskFor(java.util.concurrent.Callable<T> callable)117 protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.util.concurrent.Callable<T> callable) { throw new RuntimeException("Stub!"); }
118 
pollSubmission()119 protected java.util.concurrent.ForkJoinTask<?> pollSubmission() { throw new RuntimeException("Stub!"); }
120 
121 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_OPENJDK_21_V1_APIS)
setParallelism(int size)122 public int setParallelism(int size) { throw new RuntimeException("Stub!"); }
123 
shutdown()124 public void shutdown() { throw new RuntimeException("Stub!"); }
125 
shutdownNow()126 public java.util.List<java.lang.Runnable> shutdownNow() { throw new RuntimeException("Stub!"); }
127 
submit(java.lang.Runnable task)128 public java.util.concurrent.ForkJoinTask<?> submit(java.lang.Runnable task) { throw new RuntimeException("Stub!"); }
129 
submit(java.lang.Runnable task, T result)130 public <T> java.util.concurrent.ForkJoinTask<T> submit(java.lang.Runnable task, T result) { throw new RuntimeException("Stub!"); }
131 
submit(java.util.concurrent.Callable<T> task)132 public <T> java.util.concurrent.ForkJoinTask<T> submit(java.util.concurrent.Callable<T> task) { throw new RuntimeException("Stub!"); }
133 
submit(java.util.concurrent.ForkJoinTask<T> task)134 public <T> java.util.concurrent.ForkJoinTask<T> submit(java.util.concurrent.ForkJoinTask<T> task) { throw new RuntimeException("Stub!"); }
135 
toString()136 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
137 
138 public static final java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory defaultForkJoinWorkerThreadFactory;
139 static { defaultForkJoinWorkerThreadFactory = null; }
140 @SuppressWarnings({"unchecked", "deprecation", "all"})
141 public static interface ForkJoinWorkerThreadFactory {
142 
newThread(java.util.concurrent.ForkJoinPool pool)143 public java.util.concurrent.ForkJoinWorkerThread newThread(java.util.concurrent.ForkJoinPool pool);
144 }
145 
146 @SuppressWarnings({"unchecked", "deprecation", "all"})
147 public static interface ManagedBlocker {
148 
block()149 public boolean block() throws java.lang.InterruptedException;
150 
isReleasable()151 public boolean isReleasable();
152 }
153 
154 }
155 
156