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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header -
Constructor Summary
ConstructorsConstructorDescriptionWatchResponse(io.etcd.jetcd.api.WatchResponse response) WatchResponse(io.etcd.jetcd.api.WatchResponse response, ByteSequence namespace) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the WatchResponse is created notification.static booleanisCreatedNotify(io.etcd.jetcd.api.WatchResponse response) Returns true if the WatchResponse is created notification.booleanReturns 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 Details
-
WatchResponse
-
WatchResponse
public WatchResponse(io.etcd.jetcd.api.WatchResponse response)
-
-
Method Details
-
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.
-
isCreatedNotify
public boolean isCreatedNotify()Returns true if the WatchResponse is created notification.- Returns:
- true if the WatchResponse is created notification.
-
isCreatedNotify
public static boolean isCreatedNotify(io.etcd.jetcd.api.WatchResponse response) Returns true if the WatchResponse is created notification.- Parameters:
response- the response.- Returns:
- true if the WatchResponse is created notification.
-