public final class StreamObserverWithTimeout<T> extends Object implements org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<T>
| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
LOG |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> StreamObserverWithTimeout<T> |
newInstance(String name,
Function<T,String> request2String,
Supplier<TimeDuration> timeout,
int outstandingLimit,
Function<org.apache.ratis.thirdparty.io.grpc.ClientInterceptor,org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<T>> newStreamObserver) |
void |
onCompleted() |
void |
onError(Throwable throwable) |
void |
onNext(T request) |
String |
toString() |
public static <T> StreamObserverWithTimeout<T> newInstance(String name, Function<T,String> request2String, Supplier<TimeDuration> timeout, int outstandingLimit, Function<org.apache.ratis.thirdparty.io.grpc.ClientInterceptor,org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<T>> newStreamObserver)
public void onNext(T request)
onNext 在接口中 org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<T>public void onError(Throwable throwable)
onError 在接口中 org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<T>public void onCompleted()
onCompleted 在接口中 org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<T>Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.