Uses of Interface
java.util.concurrent.Callable
Package
Description
Provides utilities for operations on abstract syntax trees (AST).
Utility classes commonly useful in concurrent programming.
This package provides a framework for authentication and
authorization.
Provides interfaces for tools which can be invoked from a program,
for example, compilers.
-
Uses of Callable in com.sun.source.util
Modifier and TypeClassDescriptionclass
Provides access to functionality specific to the JDK Java Compiler, javac. -
Uses of Callable in java.util.concurrent
Modifier and TypeMethodDescriptionReturns aCallable
object that, when called, runs the given task and returnsnull
.static <T> Callable
<T> Returns aCallable
object that, when called, runs the given task and returns the given result.Executors.callable
(PrivilegedAction<?> action) Returns aCallable
object that, when called, runs the given privileged action and returns its result.Executors.callable
(PrivilegedExceptionAction<?> action) Returns aCallable
object that, when called, runs the given privileged exception action and returns its result.static <T> Callable
<T> Executors.privilegedCallable
(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static <T> Callable
<T> Executors.privilegedCallableUsingCurrentClassLoader
(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.StructuredTaskScope.Subtask.task()
Returns the value returning task provided to thefork
method.Modifier and TypeMethodDescriptionstatic <T> ForkJoinTask
<T> Returns a newForkJoinTask
that performs thecall
method of the givenCallable
as its action, and returns its result uponForkJoinTask.join()
, translating any checked exceptions encountered intoRuntimeException
.static <T> ForkJoinTask
<T> ForkJoinTask.adaptInterruptible
(Callable<? extends T> callable) Returns a newForkJoinTask
that performs thecall
method of the givenCallable
as its action, and returns its result uponForkJoinTask.join()
, translating any checked exceptions encountered intoRuntimeException
.protected <V> RunnableScheduledFuture
<V> ScheduledThreadPoolExecutor.decorateTask
(Callable<V> callable, RunnableScheduledFuture<V> task) Modifies or replaces the task used to execute a callable.<U extends T>
StructuredTaskScope.SubtaskPREVIEW<U> Starts a new thread in this task scope to execute a value-returning task, thus creating a subtask of this task scope.protected <T> RunnableFuture
<T> AbstractExecutorService.newTaskFor
(Callable<T> callable) Returns aRunnableFuture
for the given callable task.static <T> Callable
<T> Executors.privilegedCallable
(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static <T> Callable
<T> Executors.privilegedCallableUsingCurrentClassLoader
(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.<V> ScheduledFuture
<V> Submits a value-returning one-shot task that becomes enabled after the given delay.<V> ScheduledFuture
<V> <T> Future
<T> Submits a value-returning task for execution and returns a Future representing the pending results of the task.<T> Future
<T> Submits a value-returning task for execution and returns a Future representing the pending results of the task.<T> ForkJoinTask
<T> <T> Future
<T> Modifier and TypeMethodDescriptionAbstractExecutorService.invokeAll
(Collection<? extends Callable<T>> tasks) AbstractExecutorService.invokeAll
(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) ExecutorService.invokeAll
(Collection<? extends Callable<T>> tasks) Executes the given tasks, returning a list of Futures holding their status and results when all complete.ExecutorService.invokeAll
(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) Executes the given tasks, returning a list of Futures holding their status and results when all complete or the timeout expires, whichever happens first.ForkJoinPool.invokeAllUninterruptibly
(Collection<? extends Callable<T>> tasks) Uninterrupible version ofinvokeAll
.<T> T
AbstractExecutorService.invokeAny
(Collection<? extends Callable<T>> tasks) <T> T
AbstractExecutorService.invokeAny
(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <T> T
ExecutorService.invokeAny
(Collection<? extends Callable<T>> tasks) Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do.<T> T
ExecutorService.invokeAny
(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do before the given timeout elapses.ModifierConstructorDescriptionFutureTask
(Callable<V> callable) Creates aFutureTask
that will, upon running, execute the givenCallable
. -
Uses of Callable in javax.security.auth
-
Uses of Callable in javax.tools
Modifier and TypeInterfaceDescriptionstatic interface
Interface representing a future for a documentation task.static interface
Interface representing a future for a compilation task.