| 程序包 | 说明 |
|---|---|
| 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. |
| 限定符和类型 | 方法和说明 |
|---|---|
GenericFuture<V> |
GenericFuture.addListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Adds the specified listener to this future.
|
GenericFuture<V> |
GenericFuture.addListeners(GenericFutureListener<? extends GenericFuture<? super V>>... listeners)
Adds the specified listeners to this future.
|
GenericFuture<V> |
GenericFuture.await()
Waits for this future to be completed.
|
GenericFuture<V> |
GenericFuture.awaitUninterruptibly()
Waits for this future to be completed without
interruption.
|
GenericFuture<V> |
GenericFuture.removeListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Removes the first occurrence of the specified listener from this future.
|
GenericFuture<V> |
GenericFuture.removeListeners(GenericFutureListener<? extends GenericFuture<? super V>>... listeners)
Removes the first occurrence for each of the listeners from this future.
|
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> |
GenericFuture.syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
| 限定符和类型 | 方法和说明 |
|---|---|
GenericFuture<V> |
GenericFuture.addListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Adds the specified listener to this future.
|
GenericFuture<V> |
GenericFuture.removeListener(GenericFutureListener<? extends GenericFuture<? super V>> listener)
Removes the first occurrence of the specified listener from this future.
|
Copyright © 2021. All rights reserved.