Uses of Interface java.lang.Runnable

Uses in package javax.swing

Methods with parameter type java.lang.Runnable

void
Calls EventQueue.invokeAndWait(Runnable) with the specified Runnable.
void
Calls EventQueue.invokeLater(Runnable) with the specified Runnable.

Uses in package javax.net.ssl

Methods with return type java.lang.Runnable

Runnable

Uses in package java.util

Classes implementing java.lang.Runnable

class
Task that can be run at a later time if given to a Timer.

Uses in package java.lang

Classes implementing java.lang.Runnable

class
Thread represents a single thread of execution in the VM.

Constructors with parameter type java.lang.Runnable

Allocates a new Thread object.
Thread.Thread(Runnable target, String name)
Allocates a new Thread object.
Allocates a new Thread object.
Thread.Thread(ThreadGroup group, Runnable target, String name)
Allocate a new Thread object, with the specified ThreadGroup and name, and using the specified Runnable object's run() method to execute.
Thread.Thread(ThreadGroup group, Runnable target, String name, long size)
Allocate a new Thread object, as if by Thread(group, null, name), and give it the specified stack size, in bytes.

Uses in package java.awt.image.renderable

Classes implementing java.lang.Runnable

class

Uses in package java.awt.event

Constructors with parameter type java.lang.Runnable

InvocationEvent.InvocationEvent(Object source, int id, Runnable runnable, Object notifier, boolean catchExceptions)
Initializes a new instance of InvocationEvent with the specified source, runnable, and notifier.
Initializes a new instance of InvocationEvent with the specified source and runnable.
InvocationEvent.InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions)
Initializes a new instance of InvocationEvent with the specified source, runnable, and notifier.

Fields of type java.lang.Runnable

Runnable
This is the Runnable object to call when dispatched.

Uses in package java.awt

Methods with parameter type java.lang.Runnable

void
Causes runnable to have its run method called in the dispatch thread of the EventQueue.
void
This arranges for runnable to have its run method called in the dispatch thread of the EventQueue.

Uses in package java.util.concurrent

Classes implementing java.lang.Runnable

class
A cancellable asynchronous computation.

Constructors with parameter type java.lang.Runnable

CyclicBarrier.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.
FutureTask<V>.FutureTask(Runnable runnable, V result)
Creates a FutureTask that will upon running, execute the given Runnable, and arrange that get will return the given result on successful completion.

Methods with parameter type java.lang.Runnable

Returns a Callable object that, when called, runs the given task and returns the given result.
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.
Submits a Runnable task for execution and returns a Future representing that task.
Returns a RunnableFuture for the given runnable and default value.
Modifies or replaces the task used to execute a runnable.
void
Method invoked upon completion of execution of the given Runnable.
void
Method invoked prior to executing the given Runnable in the given thread.
Callable
Returns a Callable object that, when called, runs the given task and returns null.
void
Executes the given command at some time in the future.
void
Executes command with zero required delay.
void
Executes the given task sometime in the future.
Thread
Constructs a new Thread.
void
Method that may be invoked by a ThreadPoolExecutor when execute cannot accept a task.
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.
boolean
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.
ScheduledFuture
ScheduledExecutorService.schedule(Runnable command, long delay, TimeUnit unit)
Creates and executes a one-shot action that becomes enabled after the given delay.
ScheduledFuture
Creates and executes a one-shot action that becomes enabled after the given delay.
ScheduledFuture
ScheduledExecutorService.scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
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.scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
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
ScheduledExecutorService.scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
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.
ScheduledFuture
ScheduledThreadPoolExecutor.scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
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
Submits a Runnable task for execution and returns a Future representing that task.
Future
Submits a Runnable task for execution and returns a Future representing that task.
Future
Submits a Runnable task for execution and returns a Future representing that task.
Future
Submits a Runnable task for execution and returns a Future representing that task.
Future

Uses in package javax.swing.text

Classes implementing java.lang.Runnable

class
Represents the layout state of a child view.

Methods with parameter type java.lang.Runnable

void
Add a layout task to the queue.
void
Called to render this Document visually.
void
This allows the Document to be rendered safely.

Methods with return type java.lang.Runnable

Runnable
Called by a worker thread to retrieve the next layout task.