| Modifier | Constructor and Description | 
|---|---|
| protected  | RedFutureHub() | 
| Modifier and Type | Method and Description | 
|---|---|
| RedFutureHub | adoptFuture(RedFuture future)Requests the hub to adopt and track an instance of  RedFuture. | 
| RedFutureHub | adoptFutures(Collection<RedFuture> futures)Requests the hub to adopt and track multiple instances of  RedFuture. | 
| RedFutureHub | adoptFutures(RedFuture... futures)Requests the hub to adopt and track multiple instances of  RedFuture. | 
| RedFutureHub | adoptListenableFuture(com.google.common.util.concurrent.ListenableFuture future)Requests the hub to adopt and track an instance of  ListenableFuture. | 
| RedFutureHub | adoptListenableFutures(Collection<com.google.common.util.concurrent.ListenableFuture> futures)Requests the hub to adopt and track multiple instances of  ListenableFuture. | 
| RedFutureHub | adoptListenableFutures(com.google.common.util.concurrent.ListenableFuture<?>... futures)Requests the hub to adopt and track multiple instances of  ListenableFuture. | 
| OpenRedFuture | provideFuture()Requests the hub to provide and track a single instance of  OpenRedFuture. | 
| <T> OpenRedFutureOf<T> | provideFutureOf()Requests the hub to provide and track a single instance of  OpenRedFutureOf. | 
| RedFuture | uniteCautiously()Requests the hub to return a single united, cautious  RedFutureinstance. | 
| RedFuture | uniteOptimistically()Requests the hub to return a single united, optimistic  RedFutureinstance. | 
| RedFuture | unitePessimistically()Requests the hub to return a single united, pessimistic  RedFutureinstance. | 
public OpenRedFuture provideFuture()
OpenRedFuture.
 The instance may be resolved, failed or follow other futures, and will be tracked
 by the current hub.OpenRedFuturepublic <T> OpenRedFutureOf<T> provideFutureOf()
OpenRedFutureOf.
 The instance may be resolved, failed or follow other futures, and will be tracked
 by the current hub.T - type of the future to returnOpenRedFutureOfpublic RedFutureHub adoptFuture(RedFuture future)
RedFuture.
 This means that the given instance will be tracked by the hub.future - future to adoptpublic RedFutureHub adoptFutures(Collection<RedFuture> futures)
RedFuture.
 This means that the given instances will be tracked by the hub.futures - a collection of futures to adoptpublic RedFutureHub adoptFutures(RedFuture... futures)
RedFuture.
 This means that the given instances will be tracked by the hub.futures - a collection of futures to adoptpublic RedFutureHub adoptListenableFuture(com.google.common.util.concurrent.ListenableFuture future)
ListenableFuture.
 This means that the given instance will be tracked by the hub.future - future to adoptpublic RedFutureHub adoptListenableFutures(Collection<com.google.common.util.concurrent.ListenableFuture> futures)
ListenableFuture.
 This means that the given instances will be tracked by the hub.futures - a collection of futures to adoptpublic RedFutureHub adoptListenableFutures(com.google.common.util.concurrent.ListenableFuture<?>... futures)
ListenableFuture.
 This means that the given instances will be tracked by the hub.futures - a collection of futures to adoptpublic RedFuture uniteOptimistically()
RedFuture instance.
 Optimistic means that the returned future expects all the hub's tracked futures to resolve successfully,
 namely, it will be:
 Successfully resolved if and when all the hub's tracked futures are successfully resolved.
 Failed if and when the first of the hub's tracked futures is failed.public RedFuture unitePessimistically()
RedFuture instance.
 Pessimistic means that the returned future expects all the hub's tracked futures to complete at some point,
 namely, it will be successfully resolved once all the hub's tracked futures are completed.
 It will not be failed in any case.public RedFuture uniteCautiously()
RedFuture instance.
 Cautious means that the returned future expects all the hub's tracked futures to complete at some point,
 but it still tracks their status. Namely, it will be:
 Successfully resolved if and when all the hub's tracked futures are successfully resolved.
 Failed if and when all the hub's tracked futures are completed, but at least one of them has failed,
 in such a case, the failure callback throwable will be the cause of the first tracked future to fail.Copyright © 2017. All rights reserved.