Class IgniteCacheFutureImpl<V>

    • Constructor Detail

      • IgniteCacheFutureImpl

        public IgniteCacheFutureImpl​(IgniteInternalFuture<V> fut,
                                     Executor defaultExecutor)
        Constructor.
        Parameters:
        fut - Internal future.
    • Method Detail

      • chain

        public <T> IgniteFuture<T> chain​(IgniteClosure<? super IgniteFuture<V>,​T> doneCb)
        Make a chained future to convert result of this future (when complete) into a new format. It is guaranteed that done callback will be called only ONCE.
        Specified by:
        chain in interface IgniteFuture<V>
        Overrides:
        chain in class IgniteFutureImpl<V>
        Type Parameters:
        T - Type of the converted result.
        Parameters:
        doneCb - Done callback that is applied to this future when it finishes to produce chained future result.
        Returns:
        Chained future that finishes after this future completes and done callback is called.
      • chainAsync

        public <T> IgniteFuture<T> chainAsync​(IgniteClosure<? super IgniteFuture<V>,​T> doneCb,
                                              Executor exec)
        Make a chained future to convert result of this future (when complete) into a new format. It is guaranteed that done callback will be called only ONCE.
        Specified by:
        chainAsync in interface IgniteFuture<V>
        Overrides:
        chainAsync in class IgniteFutureImpl<V>
        Type Parameters:
        T - Type of the converted result.
        Parameters:
        doneCb - Done callback that is applied to this future when it finishes to produce chained future result.
        exec - Executor to run done callback. Cannot be null.
        Returns:
        Chained future that finishes after this future completes and done callback is called.