Uses of Interface
java.util.concurrent.Callable
-
Packages that use Callable 软件包 描述 com.sun.source.util 为抽象语法树(AST)的操作提供实用程序。java.util.concurrent 实用程序类通常用于并发编程。javafx.beans.binding 提供在Binding
上创建和操作的类,用于计算取决于一个或多个来源的值。javax.tools 为可以从程序调用的工具提供接口,例如编译器。 -
-
Uses of Callable in com.sun.source.util
Classes in com.sun.source.util that implement Callable Modifier and Type Class 描述 class
JavacTask
提供对JDK Java编译器javac特有的功能的访问。 -
Uses of Callable in java.util.concurrent
Methods in java.util.concurrent that return Callable Modifier and Type 方法 描述 static Callable<Object>
Executors. callable(Runnable task)
返回一个Callable
对象,当被调用时,它运行给定的任务并返回null
。static <T> Callable<T>
Executors. callable(Runnable task, T result)
返回一个Callable
对象,当被调用时,它运行给定的任务并返回给定的结果。static Callable<Object>
Executors. callable(PrivilegedAction<?> action)
返回一个Callable
对象,当被调用时,它运行给定的特权动作并返回其结果。static Callable<Object>
Executors. callable(PrivilegedExceptionAction<?> action)
返回一个Callable
对象,当被调用时,它运行给定的特权异常操作并返回其结果。static <T> Callable<T>
Executors. privilegedCallable(Callable<T> callable)
返回一个Callable
对象,当被调用时,将在当前访问控制上下文中执行给定的callable
。static <T> Callable<T>
Executors. privilegedCallableUsingCurrentClassLoader(Callable<T> callable)
返回一个Callable
对象,当被调用时,将在当前访问控制上下文中执行给定的callable
,当前上下文类加载器作为上下文类加载器。Methods in java.util.concurrent with parameters of type Callable Modifier and Type 方法 描述 static <T> ForkJoinTask<T>
ForkJoinTask. adapt(Callable<? extends T> callable)
返回一个新的ForkJoinTask
,执行给定的Callable
作为其操作的call
方法,并将其结果返回到ForkJoinTask.join()
,将遇到的任何检查的异常转换为RuntimeException
。protected <V> RunnableScheduledFuture<V>
ScheduledThreadPoolExecutor. decorateTask(Callable<V> callable, RunnableScheduledFuture<V> task)
修改或替换用于执行可调用的任务。protected <T> RunnableFuture<T>
AbstractExecutorService. newTaskFor(Callable<T> callable)
为给定的可调用任务返回一个RunnableFuture
。protected <T> RunnableFuture<T>
ForkJoinPool. newTaskFor(Callable<T> callable)
static <T> Callable<T>
Executors. privilegedCallable(Callable<T> callable)
返回一个Callable
对象,当被调用时,将在当前访问控制上下文中执行给定的callable
。static <T> Callable<T>
Executors. privilegedCallableUsingCurrentClassLoader(Callable<T> callable)
返回一个Callable
对象,当被调用时,将在当前访问控制上下文中执行给定的callable
,当前上下文类加载器作为上下文类加载器。<V> ScheduledFuture<V>
ScheduledExecutorService. schedule(Callable<V> callable, long delay, TimeUnit unit)
创建并执行在给定延迟后启用的ScheduledFuture。<V> ScheduledFuture<V>
ScheduledThreadPoolExecutor. schedule(Callable<V> callable, long delay, TimeUnit unit)
<T> Future<T>
AbstractExecutorService. submit(Callable<T> task)
Future<V>
CompletionService. submit(Callable<V> task)
提交值返回任务以执行,并返回代表任务待处理结果的Future。Future<V>
ExecutorCompletionService. submit(Callable<V> task)
<T> Future<T>
ExecutorService. submit(Callable<T> task)
提交值返回任务以执行,并返回代表任务待处理结果的Future。<T> ForkJoinTask<T>
ForkJoinPool. submit(Callable<T> task)
<T> Future<T>
ScheduledThreadPoolExecutor. submit(Callable<T> task)
Method parameters in java.util.concurrent with type arguments of type Callable Modifier and Type 方法 描述 <T> List<Future<T>>
AbstractExecutorService. invokeAll(Collection<? extends Callable<T>> tasks)
<T> List<Future<T>>
AbstractExecutorService. invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
<T> List<Future<T>>
ExecutorService. invokeAll(Collection<? extends Callable<T>> tasks)
执行给定的任务,返回持有他们的状态和结果的所有完成的期货列表。<T> List<Future<T>>
ExecutorService. invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
执行给定的任务,返回在所有完成或超时到期时持有其状态和结果的期货列表,以先发生者为准。<T> List<Future<T>>
ForkJoinPool. invokeAll(Collection<? extends Callable<T>> tasks)
<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)
执行给定的任务,返回成功完成的结果(即,不抛出异常),如果有的话。<T> T
ExecutorService. invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
执行给定的任务,返回一个已经成功完成的结果(即,不抛出异常),如果在给定的时间超过之前有的话。Constructors in java.util.concurrent with parameters of type Callable Constructor 描述 FutureTask(Callable<V> callable)
创建一个FutureTask
,它将在运行时执行给定的Callable
。 -
Uses of Callable in javafx.beans.binding
Methods in javafx.beans.binding with parameters of type Callable Modifier and Type 方法 描述 static BooleanBinding
Bindings. createBooleanBinding(Callable<Boolean> func, Observable... dependencies)
助手功能创建自定义BooleanBinding
。static DoubleBinding
Bindings. createDoubleBinding(Callable<Double> func, Observable... dependencies)
助手功能创建一个自定义DoubleBinding
。static FloatBinding
Bindings. createFloatBinding(Callable<Float> func, Observable... dependencies)
助手功能创建一个自定义的FloatBinding
。static IntegerBinding
Bindings. createIntegerBinding(Callable<Integer> func, Observable... dependencies)
助手功能创建自定义IntegerBinding
。static LongBinding
Bindings. createLongBinding(Callable<Long> func, Observable... dependencies)
助手功能创建自定义LongBinding
。static <T> ObjectBinding<T>
Bindings. createObjectBinding(Callable<T> func, Observable... dependencies)
助手功能创建自定义ObjectBinding
。static StringBinding
Bindings. createStringBinding(Callable<String> func, Observable... dependencies)
助手功能创建自定义StringBinding
。 -
Uses of Callable in javax.tools
Subinterfaces of Callable in javax.tools Modifier and Type 接口 描述 static interface
DocumentationTool.DocumentationTask
表示文档任务的未来的接口。static interface
JavaCompiler.CompilationTask
代表编译任务的未来的接口。
-