BeamFnDataInboundObserver2.@Deprecated
public interface InboundDataClient
| Modifier and Type | Method and Description |
|---|---|
void |
awaitCompletion()
Deprecated.
Block until the client has completed reading from the inbound stream.
|
void |
cancel()
Deprecated.
Cancels the client, causing it to drop any future inbound data.
|
void |
complete()
Deprecated.
Mark the client as completed.
|
void |
fail(java.lang.Throwable t)
Deprecated.
Mark the client as completed with an exception.
|
boolean |
isDone()
Deprecated.
Returns true if the client is done, either via completing successfully or by being cancelled.
|
void |
runWhenComplete(java.lang.Runnable completeRunnable)
Deprecated.
Runs the runnable once the client has completed reading from the inbound stream.
|
void awaitCompletion()
throws java.lang.InterruptedException,
java.lang.Exception
java.lang.InterruptedException - if the client is interrupted before completing.java.util.concurrent.CancellationException - if the client is cancelled before completing.java.lang.Exception - if the client throws an exception while awaiting completion.void runWhenComplete(java.lang.Runnable completeRunnable)
boolean isDone()
void cancel()
void complete()
void fail(java.lang.Throwable t)
t - the throwable that caused this client to fail