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>
  • Constructor Details

    • WatchResponse

      public WatchResponse(io.etcd.jetcd.api.WatchResponse response, ByteSequence namespace)
    • WatchResponse

      public WatchResponse(io.etcd.jetcd.api.WatchResponse response)
  • Method Details

    • getEvents

      public 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.
    • 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.