public class ListStatusPartialResultStream extends Object implements ResultStream<FileInfo>
Constructor and Description |
---|
ListStatusPartialResultStream(io.grpc.stub.StreamObserver<ListStatusPartialPResponse> observer,
ListStatusContext context)
Create a result stream for a partial listing.
|
Modifier and Type | Method and Description |
---|---|
void |
complete()
Called once the listing is complete, and sends the response to the client.
|
void |
onError(Throwable t)
Called if an error occurs during a partial listing.
|
void |
submit(FileInfo item)
Submits a new item to stream.
|
public ListStatusPartialResultStream(io.grpc.stub.StreamObserver<ListStatusPartialPResponse> observer, ListStatusContext context)
observer
- the response observercontext
- the listing contextpublic void submit(FileInfo item)
ResultStream
submit
in interface ResultStream<FileInfo>
item
- the next itempublic void onError(Throwable t)
t
- the errorpublic void complete()
Copyright © 2023. All Rights Reserved.