public static final class TopSQLPubSubGrpc.TopSQLPubSubStub extends org.tikv.shade.io.grpc.stub.AbstractAsyncStub<TopSQLPubSubGrpc.TopSQLPubSubStub>
TiDB implements TopSQLPubSub service for clients to subscribe to TopSQL data.
| 限定符和类型 | 方法和说明 |
|---|---|
protected TopSQLPubSubGrpc.TopSQLPubSubStub |
build(org.tikv.shade.io.grpc.Channel channel,
org.tikv.shade.io.grpc.CallOptions callOptions) |
void |
subscribe(TopSQLSubRequest request,
org.tikv.shade.io.grpc.stub.StreamObserver<TopSQLSubResponse> responseObserver)
Clients subscribe to TopSQL data through this RPC, and TiDB periodically (e.g. per minute)
publishes TopSQL data to clients via gRPC stream.
|
protected TopSQLPubSubGrpc.TopSQLPubSubStub build(org.tikv.shade.io.grpc.Channel channel, org.tikv.shade.io.grpc.CallOptions callOptions)
build 在类中 org.tikv.shade.io.grpc.stub.AbstractStub<TopSQLPubSubGrpc.TopSQLPubSubStub>public void subscribe(TopSQLSubRequest request, org.tikv.shade.io.grpc.stub.StreamObserver<TopSQLSubResponse> responseObserver)
Clients subscribe to TopSQL data through this RPC, and TiDB periodically (e.g. per minute) publishes TopSQL data to clients via gRPC stream.
Copyright © 2023 PingCAP. All rights reserved.