V
- the type of values passed through the streampublic class ResubscribableStreamObserver<V> extends Object implements io.grpc.stub.StreamObserver<V>
StreamObserver
that re-subscribes on error received (if other side is still available).Constructor and Description |
---|
ResubscribableStreamObserver(io.grpc.stub.StreamObserver<V> delegate,
Consumer<Throwable> resubscribe)
Creates the Re-subscribable Stream Observer.
|
Modifier and Type | Method and Description |
---|---|
void |
onCompleted() |
void |
onError(Throwable throwable) |
void |
onNext(V value) |
public ResubscribableStreamObserver(io.grpc.stub.StreamObserver<V> delegate, Consumer<Throwable> resubscribe)
delegate
- the StreamObserver to delegate callsresubscribe
- the re-subscription consumer - should implement the actual re-subscriptionCopyright © 2010–2020. All rights reserved.