Class WatchResponse

  • All Implemented Interfaces:
    Response

    public class WatchResponse
    extends AbstractResponse<io.etcd.jetcd.api.WatchResponse>
    • 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.