Searched refs:ThreadPoolExecutor (Results 1 - 21 of 21) sorted by relevance

/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DRejectedExecutionHandler.java39 * A handler for tasks that cannot be executed by a {@link ThreadPoolExecutor}.
47 * Method that may be invoked by a {@link ThreadPoolExecutor} when
48 * {@link ThreadPoolExecutor#execute execute} cannot accept a
61 void rejectedExecution(Runnable r, ThreadPoolExecutor executor);
H A DExecutors.java89 return new ThreadPoolExecutor(nThreads, nThreads,
114 return new ThreadPoolExecutor(nThreads, nThreads,
135 (new ThreadPoolExecutor(1, 1,
156 (new ThreadPoolExecutor(1, 1,
174 * may be created using {@link ThreadPoolExecutor} constructors.
179 return new ThreadPoolExecutor(0, Integer.MAX_VALUE,
194 return new ThreadPoolExecutor(0, Integer.MAX_VALUE,
339 * any task runs in {@link ThreadPoolExecutor} subclasses using
340 * {@link ThreadPoolExecutor#beforeExecute}. Also, if it is
H A DThreadPoolExecutor.java53 * Each {@code ThreadPoolExecutor} also maintains some basic
72 * <dd>A {@code ThreadPoolExecutor} will automatically adjust the
211 * <li> In the default {@link ThreadPoolExecutor.AbortPolicy}, the
215 * <li> In {@link ThreadPoolExecutor.CallerRunsPolicy}, the thread
220 * <li> In {@link ThreadPoolExecutor.DiscardPolicy}, a task that
223 * <li>In {@link ThreadPoolExecutor.DiscardOldestPolicy}, if the
275 * class PausableThreadPoolExecutor extends ThreadPoolExecutor {
317 public class ThreadPoolExecutor extends AbstractExecutorService { class in inherits:AbstractExecutorService
1170 * Creates a new {@code ThreadPoolExecutor} with the given initial
1193 public ThreadPoolExecutor(in method in class:ThreadPoolExecutor
1227 public ThreadPoolExecutor(int corePoolSize, method in class:ThreadPoolExecutor
1262 public ThreadPoolExecutor(int corePoolSize, method in class:ThreadPoolExecutor
1299 public ThreadPoolExecutor(int corePoolSize, method in class:ThreadPoolExecutor
[all...]
H A DScheduledThreadPoolExecutor.java42 * A {@link ThreadPoolExecutor} that can additionally schedule
46 * flexibility or capabilities of {@link ThreadPoolExecutor} (which
72 * <p>While this class inherits from {@link ThreadPoolExecutor}, a few
82 * {@link ThreadPoolExecutor#execute execute} and
120 extends ThreadPoolExecutor
124 * This class specializes ThreadPoolExecutor implementation by
136 * (see delayedExecute) compared to ThreadPoolExecutor.
607 * that {@link ThreadPoolExecutor#afterExecute afterExecute} is always
/openjdk7/jdk/test/java/util/concurrent/ThreadPoolExecutor/
H A DTimeOutShrink.java35 static void checkPoolSizes(ThreadPoolExecutor pool,
45 final ThreadPoolExecutor pool
46 = new ThreadPoolExecutor(n, 2*n, 1L, TimeUnit.SECONDS,
H A DConfigChanges.java43 static void report(ThreadPoolExecutor tpe) {
57 static void report(String label, ThreadPoolExecutor tpe) {
71 if (es instanceof ThreadPoolExecutor)
72 check(((ThreadPoolExecutor) es).isTerminating()
80 static void checkTerminated(final ThreadPoolExecutor tpe) {
115 final ThreadPoolExecutor tpe
116 = new ThreadPoolExecutor(n, 3*n,
H A DShutdownNowExecuteRace.java34 // in ThreadPoolExecutor.addWorker.
41 static volatile ThreadPoolExecutor pool = null;
53 ThreadPoolExecutor pool = ShutdownNowExecuteRace.pool;
60 pool = new ThreadPoolExecutor(
H A DModifyCorePoolSize.java34 static void awaitPoolSize(ThreadPoolExecutor pool, int n) {
39 static void setCorePoolSize(ThreadPoolExecutor pool, int n) {
H A DSelfInterrupt.java35 final ThreadPoolExecutor pool =
36 new ThreadPoolExecutor(n, n, 1L, TimeUnit.NANOSECONDS,
H A DCoreThreadTimeOut.java67 ThreadPoolExecutor tpe
68 = new ThreadPoolExecutor(threadCount, threadCount,
H A DCustom.java51 private static class CustomTPE extends ThreadPoolExecutor {
H A DThrowingTasks.java143 static void checkTerminated(ThreadPoolExecutor tpe) {
156 static class CheckingExecutor extends ThreadPoolExecutor {
/openjdk7/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/
H A DBasicCancelTest.java45 if (es instanceof ThreadPoolExecutor)
46 check(((ThreadPoolExecutor) es).isTerminating()
54 void checkTerminated(final ThreadPoolExecutor tpe) {
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DThreadPool.java106 new ThreadPoolExecutor(0, Integer.MAX_VALUE,
126 if (executor instanceof ThreadPoolExecutor) {
127 int max = ((ThreadPoolExecutor)executor).getMaximumPoolSize();
/openjdk7/jdk/test/javax/management/notification/
H A DNotifExecutorTest.java173 public static class MyExecutor extends ThreadPoolExecutor {
/openjdk7/jdk/test/java/util/concurrent/Executors/
H A DThrows.java45 ThreadPoolExecutor executor) {}};
/openjdk7/jdk/src/share/classes/javax/management/monitor/
H A DMonitor.java46 import java.util.concurrent.ThreadPoolExecutor;
184 private static final Map<ThreadPoolExecutor, Void> executors =
185 new WeakHashMap<ThreadPoolExecutor, Void>();
1512 private ThreadPoolExecutor executor;
1531 for (ThreadPoolExecutor e : executors.keySet()) {
1541 executor = new ThreadPoolExecutor(
/openjdk7/jdk/src/share/classes/javax/swing/
H A DSwingWorker.java777 new ThreadPoolExecutor(MAX_WORKER_THREADS, MAX_WORKER_THREADS,
/openjdk7/jdk/src/share/classes/sun/rmi/transport/tcp/
H A DTCPTransport.java62 import java.util.concurrent.ThreadPoolExecutor;
108 new ThreadPoolExecutor(0, maxConnectionThreads,
/openjdk7/jdk/src/windows/classes/sun/awt/shell/
H A DWin32ShellFolderManager2.java470 private static class ComInvoker extends ThreadPoolExecutor implements ThreadFactory, ShellFolder.Invoker {
/openjdk7/jdk/make/java/java/
H A DFILES_java.gmk330 java/util/concurrent/ThreadPoolExecutor.java \

Completed in 139 milliseconds