public static interface ConnectionObserver.StreamObserver
Either streamClosed()
or streamClosed(Throwable)
will be invoked to signal when a stream is
closed.
Modifier and Type | Method and Description |
---|---|
void |
streamClosed()
Callback when the stream is closed.
|
void |
streamClosed(java.lang.Throwable error)
Callback when the stream is closed due to an
error . |
ConnectionObserver.DataObserver |
streamEstablished()
Callback when the stream is established and ready.
|
ConnectionObserver.DataObserver streamEstablished()
ConnectionObserver.DataObserver
that provides visibility into read and write eventsvoid streamClosed(java.lang.Throwable error)
error
.error
- an occurred errorvoid streamClosed()