public class FutureObserver<Value,RespT> extends Object implements io.grpc.stub.StreamObserver<RespT>
Modifier and Type | Class and Description |
---|---|
static interface |
FutureObserver.Getter<Value,RespT> |
Constructor and Description |
---|
FutureObserver(FutureObserver.Getter<Value,RespT> getter) |
Modifier and Type | Method and Description |
---|---|
Future<Value> |
getFuture() |
Value |
getValue(RespT resp) |
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(RespT resp) |
public FutureObserver(FutureObserver.Getter<Value,RespT> getter)
public void onNext(RespT resp)
onNext
in interface io.grpc.stub.StreamObserver<RespT>
public void onError(Throwable t)
onError
in interface io.grpc.stub.StreamObserver<RespT>
public void onCompleted()
onCompleted
in interface io.grpc.stub.StreamObserver<RespT>
Copyright © 2024 PingCAP. All rights reserved.