@ThreadSafe public class ListStatusResultStream extends 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(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)
ResultStream
submit
in interface ResultStream<FileInfo>
item
- the next itempublic void complete()
public void fail(Throwable error)
error
- streaming errorCopyright © 2023. All Rights Reserved.