public static final class WatchGrpc.WatchStub extends io.grpc.stub.AbstractStub<WatchGrpc.WatchStub>
| 限定符和类型 | 方法和说明 |
|---|---|
protected WatchGrpc.WatchStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
io.grpc.stub.StreamObserver<Rpc.WatchRequest> |
watch(io.grpc.stub.StreamObserver<Rpc.WatchResponse> responseObserver)
Watch watches for events happening or that have happened.
|
protected WatchGrpc.WatchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build 在类中 io.grpc.stub.AbstractStub<WatchGrpc.WatchStub>public io.grpc.stub.StreamObserver<Rpc.WatchRequest> watch(io.grpc.stub.StreamObserver<Rpc.WatchResponse> responseObserver)
Watch watches for events happening or that have happened. Both input and output are streams; the input stream is for creating and canceling watchers and the output stream sends events. One watch RPC can watch on multiple key ranges, streaming events for several watches at once. The entire event history can be watched starting from the last compaction revision.
Copyright © 2018. All rights reserved.