| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.event |
Provides interfaces and classes for dealing with different types of events fired by AWT components.
|
| java.awt.image.renderable |
Provides classes and interfaces for producing rendering-independent images.
|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
EventQueue.invokeAndWait(Runnable
|
static void |
EventQueue.invokeLater(Runnable
|
| Modifier and Type | Field and Description |
|---|---|
protected Runnable |
InvocationEvent.runnable
The Runnable whose run() method will be called.
|
| Constructor and Description | |
|---|---|
InvocationEvent(Object
Constructs an
InvocationEvent with the specified source and ID which will execute the runnable's
run method when dispatched.
|
|
InvocationEvent(Object
Constructs an
InvocationEvent with the specified source which will execute the runnable's
run method when dispatched.
|
|
InvocationEvent(Object
Constructs an
InvocationEvent with the specified source which will execute the runnable's
run method when dispatched.
|
|
InvocationEvent(Object
Constructs an
InvocationEvent with the specified source which will execute the runnable's
run method when dispatched.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RenderableImageProducer
An adapter class that implements ImageProducer to allow the asynchronous production of a RenderableImage.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Thread
A
thread is a thread of execution in a program.
|
| Constructor and Description | |
|---|---|
Thread(Runnable
Allocates a new
Thread object.
|
|
Thread(Runnable
Allocates a new
Thread object.
|
|
Thread(ThreadGroup
Allocates a new
Thread object.
|
|
Thread(ThreadGroup
Allocates a new
Thread object so that it has
target as its run object, has the specified
name as its name, and belongs to the thread group referred to by
group.
|
|
Thread(ThreadGroup
Allocates a new
Thread object so that it has
target as its run object, has the specified
name as its name, and belongs to the thread group referred to by
group, and has the specified
stack size.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TimerTask
A task that can be scheduled for one-time or repeated execution by a Timer.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
RunnableFuture<V>
|
interface |
RunnableScheduledFuture<V>
A
ScheduledFuture that is
Runnable.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ForkJoinWorkerThread
A thread managed by a
ForkJoinPool, which executes
ForkJoinTasks.
|
class |
FutureTask<V>
A cancellable asynchronous computation.
|
| Modifier and Type | Method and Description |
|---|---|
BlockingQueue |
ScheduledThreadPoolExecutor.getQueue()
Returns the task queue used by this executor.
|
BlockingQueue |
ThreadPoolExecutor.getQueue()
Returns the task queue used by this executor.
|
List |
ExecutorService.shutdownNow()
Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
|
List |
ForkJoinPool.shutdownNow()
Possibly attempts to cancel and/or stop all tasks, and reject all subsequently submitted tasks.
|
List |
ScheduledThreadPoolExecutor.shutdownNow()
Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
|
List |
ThreadPoolExecutor.shutdownNow()
Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
|
| Modifier and Type | Method and Description |
|---|---|
static ForkJoinTask |
ForkJoinTask.adapt(Runnable
Returns a new
ForkJoinTask that performs the
run method of the given
Runnable as its action, and returns a null result upon
ForkJoinTask.
|
static <T> ForkJoinTask |
ForkJoinTask.adapt(Runnable
Returns a new
ForkJoinTask that performs the
run method of the given
Runnable as its action, and returns the given result upon
ForkJoinTask.
|
protected void |
ThreadPoolExecutor.afterExecute(Runnable
Method invoked upon completion of execution of the given Runnable.
|
protected void |
ThreadPoolExecutor.beforeExecute(Thread
Method invoked prior to executing the given Runnable in the given thread.
|
static Callable |
Executors.callable(Runnable
Returns a
Callable object that, when called, runs the given task and returns
null.
|
static <T> Callable |
Executors.callable(Runnable
Returns a
Callable object that, when called, runs the given task and returns the given result.
|
protected <V> RunnableScheduledFuture |
ScheduledThreadPoolExecutor.decorateTask(Runnable
Modifies or replaces the task used to execute a runnable.
|
void |
Executor.execute(Runnable
Executes the given command at some time in the future.
|
void |
ForkJoinPool.execute(Runnable
|
void |
ScheduledThreadPoolExecutor.execute(Runnable
Executes
command with zero required delay.
|
void |
ThreadPoolExecutor.execute(Runnable
Executes the given task sometime in the future.
|
protected <T> RunnableFuture |
ForkJoinPool.newTaskFor(Runnable
|
protected <T> RunnableFuture |
AbstractExecutorService.newTaskFor(Runnable
Returns a
RunnableFuture for the given runnable and default value.
|
Thread |
ThreadFactory.newThread(Runnable
Constructs a new
Thread.
|
void |
ThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(Runnable
Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.
|
void |
ThreadPoolExecutor.AbortPolicy.rejectedExecution(Runnable
Always throws RejectedExecutionException.
|
void |
ThreadPoolExecutor.DiscardPolicy.rejectedExecution(Runnable
Does nothing, which has the effect of discarding task r.
|
void |
ThreadPoolExecutor.DiscardOldestPolicy.rejectedExecution(Runnable
Obtains and ignores the next task that the executor would otherwise execute, if one is immediately available, and then retries execution of task r, unless the executor is shut down, in which case task r is instead discarded.
|
void |
RejectedExecutionHandler.rejectedExecution(Runnable
Method that may be invoked by a
ThreadPoolExecutor when
execute cannot accept a task.
|
boolean |
ThreadPoolExecutor.remove(Runnable
Removes this task from the executor's internal queue if it is present, thus causing it not to be run if it has not already started.
|
CompletionStage |
CompletionStage.runAfterBoth(CompletionStage
Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action.
|
CompletableFuture |
CompletableFuture.runAfterBoth(CompletionStage
|
CompletionStage |
CompletionStage.runAfterBothAsync(CompletionStage
Returns a new CompletionStage that, when this and the other given stage complete normally, executes the given action using this stage's default asynchronous execution facility.
|
CompletableFuture |
CompletableFuture.runAfterBothAsync(CompletionStage
|
CompletionStage |
CompletionStage.runAfterBothAsync(CompletionStage
Returns a new CompletionStage that, when this and the other given stage complete normally, executes the given action using the supplied executor See the
CompletionStage documentation for rules covering exceptional completion.
|
CompletableFuture |
CompletableFuture.runAfterBothAsync(CompletionStage
|
CompletionStage |
CompletionStage.runAfterEither(CompletionStage
Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action.
|
CompletableFuture |
CompletableFuture.runAfterEither(CompletionStage
|
CompletionStage |
CompletionStage.runAfterEitherAsync(CompletionStage
Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using this stage's default asynchronous execution facility.
|
CompletableFuture |
CompletableFuture.runAfterEitherAsync(CompletionStage
|
CompletionStage |
CompletionStage.runAfterEitherAsync(CompletionStage
Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using supplied executor.
|
CompletableFuture |
CompletableFuture.runAfterEitherAsync(CompletionStage
|
static CompletableFuture |
CompletableFuture.runAsync(Runnable
Returns a new CompletableFuture that is asynchronously completed by a task running in the
ForkJoinPool after it runs the given action.
|
static CompletableFuture |
CompletableFuture.runAsync(Runnable
Returns a new CompletableFuture that is asynchronously completed by a task running in the given executor after it runs the given action.
|
ScheduledFuture |
ScheduledThreadPoolExecutor.schedule(Runnable
|
ScheduledFuture |
ScheduledExecutorService.schedule(Runnable
Creates and executes a one-shot action that becomes enabled after the given delay.
|
ScheduledFuture |
ScheduledThreadPoolExecutor.scheduleAtFixedRate(Runnable
|
ScheduledFuture |
ScheduledExecutorService.scheduleAtFixedRate(Runnable
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after
initialDelay then
initialDelay+period, then
initialDelay + 2 * period, and so on.
|
ScheduledFuture |
ScheduledThreadPoolExecutor.scheduleWithFixedDelay(Runnable
|
ScheduledFuture |
ScheduledExecutorService.scheduleWithFixedDelay(Runnable
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next.
|
Future |
ExecutorService.submit(Runnable
Submits a Runnable task for execution and returns a Future representing that task.
|
ForkJoinTask |
ForkJoinPool.submit(Runnable
|
Future |
ScheduledThreadPoolExecutor.submit(Runnable
|
Future |
AbstractExecutorService.submit(Runnable
|
<T> Future |
ExecutorService.submit(Runnable
Submits a Runnable task for execution and returns a Future representing that task.
|
<T> ForkJoinTask |
ForkJoinPool.submit(Runnable
|
<T> Future |
ScheduledThreadPoolExecutor.submit(Runnable
|
<T> Future |
AbstractExecutorService.submit(Runnable
|
Future |
ExecutorCompletionService.submit(Runnable
|
Future |
CompletionService.submit(Runnable
Submits a Runnable task for execution and returns a Future representing that task.
|
CompletionStage |
CompletionStage.thenRun(Runnable
Returns a new CompletionStage that, when this stage completes normally, executes the given action.
|
CompletableFuture |
CompletableFuture.thenRun(Runnable
|
CompletionStage |
CompletionStage.thenRunAsync(Runnable
Returns a new CompletionStage that, when this stage completes normally, executes the given action using this stage's default asynchronous execution facility.
|
CompletableFuture |
CompletableFuture.thenRunAsync(Runnable
|
CompletionStage |
CompletionStage.thenRunAsync(Runnable
Returns a new CompletionStage that, when this stage completes normally, executes the given action using the supplied Executor.
|
CompletableFuture |
CompletableFuture.thenRunAsync(Runnable
|
| Constructor and Description | |
|---|---|
CyclicBarrier(int parties, Runnable
Creates a new
CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and which will execute the given barrier action when the barrier is tripped, performed by the last thread entering the barrier.
|
|
FutureTask(Runnable
Creates a
FutureTask that will, upon running, execute the given
Runnable, and arrange that
get will return the given result on successful completion.
|
| Constructor and Description | |
|---|---|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit
Creates a new
ThreadPoolExecutor with the given initial parameters and default thread factory and rejected execution handler.
|
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit
Creates a new
ThreadPoolExecutor with the given initial parameters and default thread factory.
|
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit
Creates a new
ThreadPoolExecutor with the given initial parameters and default rejected execution handler.
|
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit
Creates a new
ThreadPoolExecutor with the given initial parameters.
|
| Modifier and Type | Method and Description |
|---|---|
S |
BaseStream.onClose(Runnable
Returns an equivalent stream with an additional close handler.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Runnable |
SSLEngine.getDelegatedTask()
Returns a delegated
Runnable task for this
SSLEngine.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SwingWorker<T
An abstract class to perform lengthy GUI-interaction tasks in a background thread.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SwingUtilities.invokeAndWait(Runnable
Causes
doRun.run() to be executed synchronously on the AWT event dispatching thread.
|
static void |
SwingUtilities.invokeLater(Runnable
Causes
doRun.run() to be executed asynchronously on the AWT event dispatching thread.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncBoxView
A record representing the layout state of a child view.
|
| Modifier and Type | Method and Description |
|---|---|
protected Runnable |
LayoutQueue.waitForWork()
Used by the worker thread to get a new task to execute
|
| Modifier and Type | Method and Description |
|---|---|
void |
LayoutQueue.addTask(Runnable
Add a task that is not needed immediately because the results are not believed to be visible.
|
void |
AbstractDocument.render(Runnable
This allows the model to be safely rendered in the presence of currency, if the model supports being updated asynchronously.
|
void |
Document.render(Runnable
Allows the model to be safely rendered in the presence of concurrency, if the model supports being updated asynchronously.
|