public final class StreamResultFuture extends com.google.common.util.concurrent.AbstractFuture<StreamState>
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.
| Modifier and Type | Field and Description |
|---|---|
java.util.UUID |
planId |
StreamOperation |
streamOperation |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(StreamEventHandler listener) |
boolean |
equals(java.lang.Object o) |
StreamCoordinator |
getCoordinator() |
StreamState |
getCurrentState() |
void |
handleProgress(ProgressInfo progress) |
int |
hashCode() |
static StreamResultFuture |
init(java.util.UUID planId,
StreamOperation streamOperation,
java.util.Collection<StreamEventHandler> listeners,
StreamCoordinator coordinator) |
static StreamResultFuture |
initReceivingSide(int sessionIndex,
java.util.UUID planId,
StreamOperation streamOperation,
InetAddressAndPort from,
io.netty.channel.Channel channel,
java.util.UUID pendingRepair,
PreviewKind previewKind) |
public final java.util.UUID planId
public final StreamOperation streamOperation
public static StreamResultFuture init(java.util.UUID planId, StreamOperation streamOperation, java.util.Collection<StreamEventHandler> listeners, StreamCoordinator coordinator)
public static StreamResultFuture initReceivingSide(int sessionIndex, java.util.UUID planId, StreamOperation streamOperation, InetAddressAndPort from, io.netty.channel.Channel channel, java.util.UUID pendingRepair, PreviewKind previewKind)
public StreamCoordinator getCoordinator()
public void addEventListener(StreamEventHandler listener)
public StreamState getCurrentState()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void handleProgress(ProgressInfo progress)
Copyright © 2009-2019 The Apache Software Foundation