public class MetricServerInterceptor extends Object implements org.apache.ratis.thirdparty.io.grpc.ServerInterceptor, Closeable
| 构造器和说明 |
|---|
MetricServerInterceptor(Supplier<RaftPeerId> idSupplier,
String defaultIdentifier) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
MessageMetrics |
getMetrics() |
<R,S> org.apache.ratis.thirdparty.io.grpc.ServerCall.Listener<R> |
interceptCall(org.apache.ratis.thirdparty.io.grpc.ServerCall<R,S> call,
org.apache.ratis.thirdparty.io.grpc.Metadata requestHeaders,
org.apache.ratis.thirdparty.io.grpc.ServerCallHandler<R,S> next) |
public MetricServerInterceptor(Supplier<RaftPeerId> idSupplier, String defaultIdentifier)
public MessageMetrics getMetrics()
public <R,S> org.apache.ratis.thirdparty.io.grpc.ServerCall.Listener<R> interceptCall(org.apache.ratis.thirdparty.io.grpc.ServerCall<R,S> call, org.apache.ratis.thirdparty.io.grpc.Metadata requestHeaders, org.apache.ratis.thirdparty.io.grpc.ServerCallHandler<R,S> next)
interceptCall 在接口中 org.apache.ratis.thirdparty.io.grpc.ServerInterceptorpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.