Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ThreadGroup |
A thread group represents a set of threads.
|
Modifier and Type | Method | Description |
---|---|---|
static Thread.UncaughtExceptionHandler |
Thread.getDefaultUncaughtExceptionHandler() |
Returns the default handler invoked when a thread abruptly terminates
due to an uncaught exception.
|
Thread.UncaughtExceptionHandler |
Thread.getUncaughtExceptionHandler() |
Returns the handler invoked when this thread abruptly terminates
due to an uncaught exception.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
Thread.setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) |
Set the default handler invoked when a thread abruptly terminates
due to an uncaught exception, and no other handler has been defined
for that thread.
|
void |
Thread.setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) |
Set the handler invoked when this thread abruptly terminates
due to an uncaught exception.
|
Modifier and Type | Method | Description |
---|---|---|
Thread.UncaughtExceptionHandler |
ForkJoinPool.getUncaughtExceptionHandler() |
Returns the handler for internal worker threads that terminate
due to unrecoverable errors encountered while executing tasks.
|
Constructor | Description |
---|---|
ForkJoinPool(int parallelism,
ForkJoinPool.ForkJoinWorkerThreadFactory factory,
Thread.UncaughtExceptionHandler handler,
boolean asyncMode) |
Creates a
ForkJoinPool with the given parameters (using
defaults for others -- see ForkJoinPool(int,
ForkJoinWorkerThreadFactory, UncaughtExceptionHandler, boolean,
int, int, int, Predicate, long, TimeUnit) ). |
ForkJoinPool(int parallelism,
ForkJoinPool.ForkJoinWorkerThreadFactory factory,
Thread.UncaughtExceptionHandler handler,
boolean asyncMode,
int corePoolSize,
int maximumPoolSize,
int minimumRunnable,
Predicate<? super ForkJoinPool> saturate,
long keepAliveTime,
TimeUnit unit) |
Creates a
ForkJoinPool with the given parameters. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps