Uses of Interface
java.util.concurrent.Callable
Packages that use Callable
Package
Description
Provides utilities for operations on abstract syntax trees (AST).
Utility classes commonly useful in concurrent programming.
Provides interfaces for tools which can be invoked from a program,
 for example, compilers.
- 
Uses of Callable in com.sun.source.utilClasses in com.sun.source.util that implement CallableModifier and TypeClassDescriptionclassProvides access to functionality specific to the JDK Java Compiler, javac.
- 
Uses of Callable in java.util.concurrentMethods in java.util.concurrent that return CallableModifier and TypeMethodDescriptionReturns aCallableobject that, when called, runs the given task and returnsnull.static <T> Callable<T>Returns aCallableobject that, when called, runs the given task and returns the given result.Executors.callable(PrivilegedAction<?> action)Returns aCallableobject that, when called, runs the given privileged action and returns its result.Executors.callable(PrivilegedExceptionAction<?> action)Returns aCallableobject that, when called, runs the given privileged exception action and returns its result.static <T> Callable<T>Executors.privilegedCallable(Callable<T> callable)Returns aCallableobject that will, when called, execute the givencallableunder the current access control context.static <T> Callable<T>Executors.privilegedCallableUsingCurrentClassLoader(Callable<T> callable)Returns aCallableobject that will, when called, execute the givencallableunder the current access control context, with the current context class loader as the context class loader.Methods in java.util.concurrent with parameters of type CallableModifier and TypeMethodDescriptionstatic <T> ForkJoinTask<T>Returns a newForkJoinTaskthat performs thecallmethod of the givenCallableas 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.protected <T> RunnableFuture<T>AbstractExecutorService.newTaskFor(Callable<T> callable)Returns aRunnableFuturefor the given callable task.static <T> Callable<T>Executors.privilegedCallable(Callable<T> callable)Returns aCallableobject that will, when called, execute the givencallableunder the current access control context.static <T> Callable<T>Executors.privilegedCallableUsingCurrentClassLoader(Callable<T> callable)Returns aCallableobject that will, when called, execute the givencallableunder the current access control context, with the current context class loader as the context class loader.<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>Method parameters in java.util.concurrent with type arguments of type CallableModifier 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.invokeAll(Collection<? extends Callable<T>> tasks)<T> TAbstractExecutorService.invokeAny(Collection<? extends Callable<T>> tasks)<T> TAbstractExecutorService.invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)<T> TExecutorService.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> TExecutorService.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.Constructors in java.util.concurrent with parameters of type CallableModifierConstructorDescriptionFutureTask(Callable<V> callable)Creates aFutureTaskthat will, upon running, execute the givenCallable.
- 
Uses of Callable in javax.toolsSubinterfaces of Callable in javax.toolsModifier and TypeInterfaceDescriptionstatic interfaceInterface representing a future for a documentation task.static interfaceInterface representing a future for a compilation task.