Package io.etcd.jetcd.api
Class WatchGrpc.WatchStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<WatchGrpc.WatchStub>
-
- io.etcd.jetcd.api.WatchGrpc.WatchStub
-
- Enclosing class:
- WatchGrpc
public static final class WatchGrpc.WatchStub extends io.grpc.stub.AbstractAsyncStub<WatchGrpc.WatchStub>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WatchGrpc.WatchStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidprogress(WatchProgressRequest request, io.grpc.stub.StreamObserver<WatchResponse> responseObserver)Progress requests that a watch stream progress status be sent in the watch response stream as soon as possible.io.grpc.stub.StreamObserver<WatchRequest>watch(io.grpc.stub.StreamObserver<WatchResponse> responseObserver)Watch watches for events happening or that have happened.
-
-
-
Method Detail
-
build
protected WatchGrpc.WatchStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<WatchGrpc.WatchStub>
-
progress
public void progress(WatchProgressRequest request, io.grpc.stub.StreamObserver<WatchResponse> responseObserver)
Progress requests that a watch stream progress status be sent in the watch response stream as soon as possible. For watch progress responses, the header.revision indicates progress. All future events received in this stream are guaranteed to have a higher revision number than the header.revision number.
-
watch
public io.grpc.stub.StreamObserver<WatchRequest> watch(io.grpc.stub.StreamObserver<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.
-
-