Uses of Interface
java.lang.Runnable
| Package | Description |
|---|---|
| com.squareup.okhttp.internal | |
| com.squareup.okhttp.internal.http | |
| java.lang | |
| java.util | |
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| javax.net.ssl |
This package provides classes and interfaces needed to use the Secure
Sockets Layer (SSL) protocol and the successor Transport Layer
Security (TLS) protocol.
|
| org.apache.harmony.luni.util | |
| org.apache.http.impl.conn.tsccm |
The implementation of a thread-safe client connection manager.
|
| org.apache.xalan.transformer |
In charge of run-time transformations and the production of result trees.
|
| org.apache.xml.dtm.ref | |
| org.apache.xml.utils |
Implementation of Xalan utility classes.
|
| org.conscrypt |
-
Uses of Runnable in com.squareup.okhttp.internal
Classes in com.squareup.okhttp.internal that implement Runnable Modifier and Type Class Description classNamedRunnableRunnable implementation which always sets its thread name. -
Uses of Runnable in com.squareup.okhttp.internal.http
Classes in com.squareup.okhttp.internal.http that implement Runnable Modifier and Type Class Description classJob -
Uses of Runnable in java.lang
Classes in java.lang that implement Runnable Modifier and Type Class Description classThreadAThreadis a concurrent unit of execution.Methods in java.lang with parameters of type Runnable Modifier and Type Method Description voidThread. popInterruptAction$(Runnable interruptAction)RemovesinterruptActionso it is not invoked upon interruption.voidThread. pushInterruptAction$(Runnable interruptAction)Adds a runnable to be invoked upon interruption.Constructors in java.lang with parameters of type Runnable Constructor Description Thread(Runnable runnable)Constructs a newThreadwith aRunnableobject and a newly generated name.Thread(Runnable runnable, String threadName)Constructs a newThreadwith aRunnableobject and name provided.Thread(ThreadGroup group, Runnable runnable)Constructs a newThreadwith aRunnableobject and a newly generated name.Thread(ThreadGroup group, Runnable runnable, String threadName)Constructs a newThreadwith aRunnableobject, the given name and belonging to theThreadGrouppassed as parameter.Thread(ThreadGroup group, Runnable runnable, String threadName, long stackSize)Constructs a newThreadwith aRunnableobject, the given name and belonging to theThreadGrouppassed as parameter. -
Uses of Runnable in java.util
-
Uses of Runnable in java.util.concurrent
Subinterfaces of Runnable in java.util.concurrent Modifier and Type Interface Description interfaceRunnableFuture<V>interfaceRunnableScheduledFuture<V>AScheduledFuturethat isRunnable.Classes in java.util.concurrent that implement Runnable Modifier and Type Class Description classForkJoinWorkerThreadA thread managed by aForkJoinPool, which executesForkJoinTasks.classFutureTask<V>A cancellable asynchronous computation.Methods in java.util.concurrent that return types with arguments of type Runnable Modifier and Type Method Description BlockingQueue<Runnable>ScheduledThreadPoolExecutor. getQueue()Returns the task queue used by this executor.BlockingQueue<Runnable>ThreadPoolExecutor. getQueue()Returns the task queue used by this executor.List<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.List<Runnable>ForkJoinPool. shutdownNow()Possibly attempts to cancel and/or stop all tasks, and reject all subsequently submitted tasks.List<Runnable>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<Runnable>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 Modifier and Type Method Description static ForkJoinTask<?>ForkJoinTask. adapt(Runnable runnable)Returns a newForkJoinTaskthat performs therunmethod of the givenRunnableas its action, and returns a null result uponForkJoinTask.join().static <T> ForkJoinTask<T>ForkJoinTask. adapt(Runnable runnable, T result)Returns a newForkJoinTaskthat performs therunmethod of the givenRunnableas its action, and returns the given result uponForkJoinTask.join().protected voidThreadPoolExecutor. afterExecute(Runnable r, Throwable t)Method invoked upon completion of execution of the given Runnable.protected voidThreadPoolExecutor. beforeExecute(Thread t, Runnable r)Method invoked prior to executing the given Runnable in the given thread.static Callable<Object>Executors. callable(Runnable task)Returns aCallableobject that, when called, runs the given task and returnsnull.static <T> Callable<T>Executors. callable(Runnable task, T result)Returns aCallableobject that, when called, runs the given task and returns the given result.protected <V> RunnableScheduledFuture<V>ScheduledThreadPoolExecutor. decorateTask(Runnable runnable, RunnableScheduledFuture<V> task)Modifies or replaces the task used to execute a runnable.voidExecutor. execute(Runnable command)Executes the given command at some time in the future.voidForkJoinPool. execute(Runnable task)voidScheduledThreadPoolExecutor. execute(Runnable command)Executescommandwith zero required delay.voidThreadPoolExecutor. execute(Runnable command)Executes the given task sometime in the future.protected <T> RunnableFuture<T>AbstractExecutorService. newTaskFor(Runnable runnable, T value)Returns aRunnableFuturefor the given runnable and default value.protected <T> RunnableFuture<T>ForkJoinPool. newTaskFor(Runnable runnable, T value)ThreadThreadFactory. newThread(Runnable r)Constructs a newThread.voidRejectedExecutionHandler. rejectedExecution(Runnable r, ThreadPoolExecutor executor)Method that may be invoked by aThreadPoolExecutorwhenexecutecannot accept a task.voidThreadPoolExecutor.AbortPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)Always throws RejectedExecutionException.voidThreadPoolExecutor.CallerRunsPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.voidThreadPoolExecutor.DiscardOldestPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)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.voidThreadPoolExecutor.DiscardPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)Does nothing, which has the effect of discarding task r.booleanThreadPoolExecutor. remove(Runnable task)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<?>ScheduledThreadPoolExecutor. schedule(Runnable command, long delay, TimeUnit unit)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 afterinitialDelaytheninitialDelay+period, theninitialDelay + 2 * period, and so on.ScheduledFuture<?>ScheduledThreadPoolExecutor. scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)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)Future<?>AbstractExecutorService. submit(Runnable task)<T> Future<T>AbstractExecutorService. submit(Runnable task, T result)Future<V>CompletionService. submit(Runnable task, V result)Submits a Runnable task for execution and returns a Future representing that task.Future<V>ExecutorCompletionService. submit(Runnable task, V result)Future<?>ExecutorService. submit(Runnable task)Submits a Runnable task for execution and returns a Future representing that task.<T> Future<T>ExecutorService. submit(Runnable task, T result)Submits a Runnable task for execution and returns a Future representing that task.ForkJoinTask<?>ForkJoinPool. submit(Runnable task)<T> ForkJoinTask<T>ForkJoinPool. submit(Runnable task, T result)Future<?>ScheduledThreadPoolExecutor. submit(Runnable task)<T> Future<T>ScheduledThreadPoolExecutor. submit(Runnable task, T result)Constructors in java.util.concurrent with parameters of type Runnable Constructor Description CyclicBarrier(int parties, Runnable barrierAction)Creates a newCyclicBarrierthat 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 runnable, V result)Creates aFutureTaskthat will, upon running, execute the givenRunnable, and arrange thatgetwill return the given result on successful completion.Constructor parameters in java.util.concurrent with type arguments of type Runnable Constructor Description ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)Creates a newThreadPoolExecutorwith the given initial parameters and default thread factory and rejected execution handler.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler)Creates a newThreadPoolExecutorwith the given initial parameters and default thread factory.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)Creates a newThreadPoolExecutorwith the given initial parameters and default rejected execution handler.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)Creates a newThreadPoolExecutorwith the given initial parameters. -
Uses of Runnable in javax.net.ssl
Methods in javax.net.ssl that return Runnable Modifier and Type Method Description abstract RunnableSSLEngine. getDelegatedTask()Returns a delegate task for this engine instance. -
Uses of Runnable in org.apache.harmony.luni.util
Classes in org.apache.harmony.luni.util that implement Runnable Modifier and Type Class Description classDeleteOnExitImplements the actual DeleteOnExit mechanism. -
Uses of Runnable in org.apache.http.impl.conn.tsccm
Classes in org.apache.http.impl.conn.tsccm that implement Runnable Modifier and Type Class Description classRefQueueWorkerA worker thread for processing queued references. -
Uses of Runnable in org.apache.xalan.transformer
Classes in org.apache.xalan.transformer that implement Runnable Modifier and Type Class Description classTransformerImplThis class implements theTransformerinterface, and is the core representation of the transformation execution.Methods in org.apache.xalan.transformer with parameters of type Runnable Modifier and Type Method Description static voidTransformerImpl. runTransformThread(Runnable runnable)Called by CoRoutineSAXParser. -
Uses of Runnable in org.apache.xml.dtm.ref
Classes in org.apache.xml.dtm.ref that implement Runnable Modifier and Type Class Description classIncrementalSAXSource_FilterIncrementalSAXSource_Filter implements IncrementalSAXSource, using a standard SAX2 event source as its input and parcelling out those events gradually in reponse to deliverMoreNodes() requests. -
Uses of Runnable in org.apache.xml.utils
Methods in org.apache.xml.utils with parameters of type Runnable Modifier and Type Method Description ThreadThreadControllerWrapper.ThreadController. run(Runnable task, int priority)Will get a thread from the pool, execute the task and return the thread to the pool.static ThreadThreadControllerWrapper. runThread(Runnable runnable, int priority)voidThreadControllerWrapper.ThreadController. waitThread(Thread worker, Runnable task)Wait until the task is completed on the worker thread.static voidThreadControllerWrapper. waitThread(Thread worker, Runnable task) -
Uses of Runnable in org.conscrypt
Classes in org.conscrypt that implement Runnable Modifier and Type Class Description classDelegatedTaskDelegated Runnable task for SSLEngineMethods in org.conscrypt that return Runnable Modifier and Type Method Description RunnableSSLEngineImpl. getDelegatedTask()Returns handshake's delegated tasks to be runRunnableHandshakeProtocol. getTask()Returns a delegated task.Constructors in org.conscrypt with parameters of type Runnable Constructor Description DelegatedTask(Runnable action, HandshakeProtocol handshaker)