public static final class ResourceMeteringPubSubGrpc.ResourceMeteringPubSubStub extends io.grpc.stub.AbstractAsyncStub<ResourceMeteringPubSubGrpc.ResourceMeteringPubSubStub>
TiKV implements ResourceMeteringPubSub service for clients to subscribe to resource metering records.
Modifier and Type | Method and Description |
---|---|
protected ResourceMeteringPubSubGrpc.ResourceMeteringPubSubStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
subscribe(ResourceUsageAgentOuterClass.ResourceMeteringRequest request,
io.grpc.stub.StreamObserver<ResourceUsageAgentOuterClass.ResourceUsageRecord> responseObserver)
Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g.
|
protected ResourceMeteringPubSubGrpc.ResourceMeteringPubSubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<ResourceMeteringPubSubGrpc.ResourceMeteringPubSubStub>
public void subscribe(ResourceUsageAgentOuterClass.ResourceMeteringRequest request, io.grpc.stub.StreamObserver<ResourceUsageAgentOuterClass.ResourceUsageRecord> responseObserver)
Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g. per minute) publishes resource metering records to clients via gRPC stream.
Copyright © 2024 PingCAP. All rights reserved.