public class JEtcdClient.EtcdWatcher extends Object implements io.grpc.stub.StreamObserver<io.etcd.jetcd.api.WatchResponse>
| Constructor and Description |
|---|
EtcdWatcher(ChildListener listener) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
forPath(String path) |
void |
onCompleted() |
void |
onError(Throwable e) |
void |
onNext(io.etcd.jetcd.api.WatchResponse response) |
void |
tryReconnect(Throwable e) |
void |
unwatch() |
public EtcdWatcher(ChildListener listener)
public void onNext(io.etcd.jetcd.api.WatchResponse response)
onNext in interface io.grpc.stub.StreamObserver<io.etcd.jetcd.api.WatchResponse>public void onError(Throwable e)
onError in interface io.grpc.stub.StreamObserver<io.etcd.jetcd.api.WatchResponse>public void unwatch()
public void tryReconnect(Throwable e)
public void onCompleted()
onCompleted in interface io.grpc.stub.StreamObserver<io.etcd.jetcd.api.WatchResponse>Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.