|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Packages that use Runnable |
|
Provides classes that are fundamental to the design of the Java
programming language.
|
|
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
|
Utility classes commonly useful in concurrent programming.
|
|
Provides classes and interfaces that deal with editable and noneditable text
components.
|
class |
A thread is a thread of execution in a program.
|
Allocates a new Thread object.
|
|
Allocates a new Thread object.
|
|
Allocates a new Thread object.
|
|
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.
|
|
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.
|
|
Thread(ThreadGroup group, Runnable target, String name, long stackSize, boolean inheritThreadLocals)
Allocates a new Thread object so that it has target
as its run object, has the specified name as its name,
belongs to the thread group referred to by group, has
the specified stackSize, and inherits initial values for
inheritable thread-local variables
if inheritThreadLocals is true.
|
abstract class |
A task that can be scheduled for one-time or repeated execution by a
Timer.
|
void |
If a value is present, performs the given action with the value,
otherwise performs the given empty-based action.
|
void |
If a value is present, performs the given action with the value,
otherwise performs the given empty-based action.
|
void |
If a value is present, performs the given action with the value,
otherwise performs the given empty-based action.
|
void |
If a value is present, performs the given action with the value,
otherwise performs the given empty-based action.
|
Uses of Runnable in java.util.concurrent |
Subinterfaces of Runnable in java.util.concurrent |
|
interface |
|
interface |
A ScheduledFuture that is Runnable.
|
Classes in java.util.concurrent that implement Runnable |
|
class |
A thread managed by a ForkJoinPool, which executes
ForkJoinTasks.
|
class |
A cancellable asynchronous computation.
|
Methods in java.util.concurrent that return types with arguments of type Runnable |
|
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.
|
|
ForkJoinPool.shutdownNow()
Possibly attempts to cancel and/or stop all tasks, and reject
all subsequently submitted tasks.
|
|
ScheduledThreadPoolExecutor.getQueue()
Returns the task queue used by this executor.
|
|
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.
|
|
ThreadPoolExecutor.getQueue()
Returns the task queue used by this executor.
|
|
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.
|
Methods in java.util.concurrent with parameters of type Runnable |
|
Returns a RunnableFuture for the given runnable and default
value.
|
|
Future<?> |
Submits a Runnable task for execution and returns a Future
representing that task.
|
Submits a Runnable task for execution and returns a Future
representing that task.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using this stage's default asynchronous execution facility.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using the supplied executor.
|
|
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action.
|
|
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.
|
|
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action
using the supplied executor.
|
|
static CompletableFuture<Void> |
Returns a new CompletableFuture that is asynchronously completed
by a task running in the ForkJoinPool.commonPool() after
it runs the given action.
|
static CompletableFuture<Void> |
Returns a new CompletableFuture that is asynchronously completed
by a task running in the given executor after it runs the given
action.
|
Returns a new CompletionStage that, when this stage completes
normally, executes the given action.
|
|
CompletableFuture.thenRunAsync(Runnable action)
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using this stage's default
asynchronous execution facility.
|
|
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using the supplied Executor.
|
|
Submits a Runnable task for execution and returns a Future
representing that task.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using this stage's default asynchronous execution facility.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using the supplied executor.
|
|
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action.
|
|
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.
|
|
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action
using the supplied executor.
|
|
Returns a new CompletionStage that, when this stage completes
normally, executes the given action.
|
|
CompletionStage.thenRunAsync(Runnable action)
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using this stage's default
asynchronous execution facility.
|
|
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using the supplied Executor.
|
|
void |
Executes the given command at some time in the future.
|
Submits a Runnable task for execution and returns a Future
representing that task.
|
|
Returns a Callable object that, when
called, runs the given task and returns null.
|
|
Returns a Callable object that, when
called, runs the given task and returns the given result.
|
|
Future<?> |
Submits a Runnable task for execution and returns a Future
representing that task.
|
Submits a Runnable task for execution and returns a Future
representing that task.
|
|
void |
Executes the given command at some time in the future.
|
Returns a RunnableFuture for the given runnable and default
value.
|
|
ForkJoinTask<?> |
Submits a Runnable task for execution and returns a Future
representing that task.
|
Submits a Runnable task for execution and returns a Future
representing that task.
|
|
static ForkJoinTask<?> |
Returns a new ForkJoinTask that performs the run
method of the given Runnable as its action, and returns
a null result upon ForkJoinTask.join().
|
Returns a new ForkJoinTask that performs the run
method of the given Runnable as its action, and returns
the given result upon ForkJoinTask.join().
|
|
void |
Method that may be invoked by a ThreadPoolExecutor when
execute cannot accept a
task.
|
Submits a one-shot task that becomes enabled after the given delay.
|
|
ScheduledExecutorService.scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
Submits 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.
|
|
ScheduledExecutorService.scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
Submits 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.
|
|
Modifies or replaces the task used to execute a runnable.
|
|
void |
Executes command with zero required delay.
|
Submits a one-shot task that becomes enabled after the given delay.
|
|
ScheduledThreadPoolExecutor.scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
Submits 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.
|
|
ScheduledThreadPoolExecutor.scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
Submits 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<?> |
Submits a Runnable task for execution and returns a Future
representing that task.
|
Submits a Runnable task for execution and returns a Future
representing that task.
|
|
Constructs a new Thread.
|
|
protected void |
Method invoked upon completion of execution of the given Runnable.
|
protected void |
Method invoked prior to executing the given Runnable in the
given thread.
|
void |
Executes the given task sometime in the future.
|
boolean |
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.
|
void |
Always throws RejectedExecutionException.
|
void |
Executes task r in the caller's thread, unless the executor
has been shut down, in which case the task is discarded.
|
void |
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 |
Does nothing, which has the effect of discarding task r.
|
Constructors in java.util.concurrent with parameters of type Runnable |
|
CyclicBarrier(int parties, Runnable barrierAction)
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.
|
|
Creates a FutureTask that will, upon running, execute the
given Runnable, and arrange that get will return the
given result on successful completion.
|
Constructor parameters in java.util.concurrent with type arguments of type Runnable |
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)
Creates a new ThreadPoolExecutor with the given initial
parameters, the
default thread factory
and the default rejected execution handler.
|
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler)
Creates a new ThreadPoolExecutor with the given initial
parameters and the
default thread factory.
|
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
Creates a new ThreadPoolExecutor with the given initial
parameters and the default rejected execution handler.
|
|
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
Creates a new ThreadPoolExecutor with the given initial
parameters.
|
Uses of Runnable in javax.swing.text |
Methods in javax.swing.text with parameters of type Runnable |
|
void |
Allows the model to be safely rendered in the presence
of concurrency, if the model supports being updated asynchronously.
|
|
FlexDoc/Javadoc 2.0 Demo Java Doc |