@ThreadSafe public class ListStatusResultStream extends java.lang.Object implements ResultStream<FileInfo>
| Constructor and Description |
|---|
ListStatusResultStream(int batchSize,
io.grpc.stub.StreamObserver<ListStatusPResponse> clientObserver)
Creates a new result streamer for listStatus call.
|
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Used to complete the stream.
|
void |
fail(java.lang.Throwable error)
Used to fail streaming with an error.
|
void |
submit(FileInfo item)
Submits a new item to stream.
|
public ListStatusResultStream(int batchSize,
io.grpc.stub.StreamObserver<ListStatusPResponse> clientObserver)
batchSize - batch sizeclientObserver - client streampublic void submit(FileInfo item)
ResultStreamsubmit in interface ResultStream<FileInfo>item - the next itempublic void complete()
public void fail(java.lang.Throwable error)
error - streaming errorCopyright © 2019. All Rights Reserved.