Package io.etcd.jetcd.watch
Class WatchResponse
- java.lang.Object
-
- io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.WatchResponse>
-
- io.etcd.jetcd.watch.WatchResponse
-
- All Implemented Interfaces:
Response
public class WatchResponse extends AbstractResponse<io.etcd.jetcd.api.WatchResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header
-
-
Constructor Summary
Constructors Constructor Description WatchResponse(io.etcd.jetcd.api.WatchResponse response)WatchResponse(io.etcd.jetcd.api.WatchResponse response, ByteSequence namespace)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<WatchEvent>getEvents()booleanisProgressNotify()Returns true if the WatchResponse is progress notification.static booleanisProgressNotify(io.etcd.jetcd.api.WatchResponse response)Returns true if the WatchResponse is progress notification.-
Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
-
-
-
Constructor Detail
-
WatchResponse
public WatchResponse(io.etcd.jetcd.api.WatchResponse response, ByteSequence namespace)
-
WatchResponse
public WatchResponse(io.etcd.jetcd.api.WatchResponse response)
-
-
Method Detail
-
getEvents
public java.util.List<WatchEvent> getEvents()
-
isProgressNotify
public boolean isProgressNotify()
Returns true if the WatchResponse is progress notification.- Returns:
- true if the WatchResponse is progress notification.
-
isProgressNotify
public static boolean isProgressNotify(io.etcd.jetcd.api.WatchResponse response)
Returns true if the WatchResponse is progress notification.- Parameters:
response- the response.- Returns:
- true if the WatchResponse is progress notification.
-
-