public class DelegatingSessionExecutorService extends Object implements ExecutorService
| 构造器和说明 |
|---|
DelegatingSessionExecutorService(ExecutorService delegate) |
DelegatingSessionExecutorService(ExecutorService delegate,
boolean useSecurityContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable command) |
ExecutorService |
getDelegate() |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
<T> Future<T> |
submit(Callable<T> task) |
Future<?> |
submit(Runnable task) |
<T> Future<T> |
submit(Runnable task,
T result) |
protected <T> Callable<T> |
wrap(Callable<T> callable) |
protected Runnable |
wrap(Runnable runnable) |
public DelegatingSessionExecutorService(ExecutorService delegate)
public DelegatingSessionExecutorService(ExecutorService delegate, boolean useSecurityContext)
public ExecutorService getDelegate()
public void shutdown()
shutdown 在接口中 ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow 在接口中 ExecutorServicepublic boolean isShutdown()
isShutdown 在接口中 ExecutorServicepublic boolean isTerminated()
isTerminated 在接口中 ExecutorServicepublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination 在接口中 ExecutorServiceInterruptedExceptionpublic <T> Future<T> submit(Callable<T> task)
submit 在接口中 ExecutorServicepublic <T> Future<T> submit(Runnable task, T result)
submit 在接口中 ExecutorServicepublic Future<?> submit(Runnable task)
submit 在接口中 ExecutorServicepublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll 在接口中 ExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll 在接口中 ExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny 在接口中 ExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Copyright © 2022–2023. All rights reserved.