Class StreamResultFuture

  • All Implemented Interfaces:
    com.google.common.util.concurrent.ListenableFuture<StreamState>, io.netty.util.concurrent.Future<StreamState>, java.util.concurrent.Future<StreamState>, Awaitable, Future<StreamState>

    public final class StreamResultFuture
    extends AsyncFuture<StreamState>
    A future on the result (StreamState) of a streaming plan. In practice, this object also groups all the StreamSession for the streaming job involved. One StreamSession will be created for every peer involved and said session will handle every streaming (outgoing and incoming) to that peer for this job.

    The future will return a result once every session is completed (successfully or not). If any session ended up with an error, the future will throw a StreamException.

    You can attach StreamEventHandler to this object to listen on StreamEvents to track progress of the streaming.