| 程序包 | 说明 |
|---|---|
| com.jn.langx.util.concurrent.async |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
GenericFutureListener<F extends GenericFuture<?>>
Listens to the result of a
GenericFuture. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractFuture<V>
Abstract
GenericFuture implementation which does not allow for cancellation. |
class |
DefaultFuture<V> |
| 限定符和类型 | 方法和说明 |
|---|---|
GenericFuture<V> |
GenericFuture.addListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Adds the specified listener to this future.
|
GenericFuture<V> |
DefaultFuture.addListener(GenericFutureListener<? extends GenericFuture<? super V>> listener) |
GenericFuture<V> |
GenericFuture.addListeners(GenericFutureListener<? extends GenericFuture<? super V>>... listeners)
Adds the specified listeners to this future.
|
GenericFuture<V> |
DefaultFuture.addListeners(GenericFutureListener<? extends GenericFuture<? super V>>... listeners) |
GenericFuture<V> |
GenericFuture.await()
Waits for this future to be completed.
|
GenericFuture<V> |
DefaultFuture.await()
一直等,直到 完成,或者中断
|
GenericFuture<V> |
GenericFuture.awaitUninterruptibly()
Waits for this future to be completed without
interruption.
|
GenericFuture<V> |
DefaultFuture.awaitUninterruptibly() |
GenericFuture<V> |
GenericFuture.removeListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Removes the first occurrence of the specified listener from this future.
|
GenericFuture<V> |
DefaultFuture.removeListener(GenericFutureListener<? extends GenericFuture<? super V>> listener) |
GenericFuture<V> |
GenericFuture.removeListeners(GenericFutureListener<? extends GenericFuture<? super V>>... listeners)
Removes the first occurrence for each of the listeners from this future.
|
GenericFuture<V> |
DefaultFuture.removeListeners(GenericFutureListener<? extends GenericFuture<? super V>>... listeners) |
static <V> GenericFuture<V> |
DefaultFuture.submit(ExecutorService executorService,
Callable<V> callable) |
static <V> GenericFuture<V> |
DefaultFuture.submit(ExecutorService executorService,
Callable<V> callable,
boolean cancelable) |
static <V> GenericFuture<V> |
DefaultFuture.submit(ExecutorService executorService,
Runnable runnable) |
static <V> GenericFuture<V> |
DefaultFuture.submit(ExecutorService executorService,
Runnable runnable,
boolean cancelable) |
static <V> GenericFuture<V> |
DefaultFuture.submit(ExecutorService executorService,
Runnable runnable,
boolean cancelable,
V result) |
GenericFuture<V> |
GenericFuture.sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
GenericFuture<V> |
DefaultFuture.sync() |
GenericFuture<V> |
GenericFuture.syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
GenericFuture<V> |
DefaultFuture.syncUninterruptibly() |
| 限定符和类型 | 方法和说明 |
|---|---|
GenericFuture<V> |
GenericFuture.addListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Adds the specified listener to this future.
|
GenericFuture<V> |
DefaultFuture.addListener(GenericFutureListener<? extends GenericFuture<? super V>> listener) |
GenericFuture<V> |
GenericFuture.removeListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Removes the first occurrence of the specified listener from this future.
|
GenericFuture<V> |
DefaultFuture.removeListener(GenericFutureListener<? extends GenericFuture<? super V>> listener) |
Copyright © 2022. All rights reserved.