Class WatchEvent

java.lang.Object
io.deephaven.kv.WatchEvent

public final class WatchEvent extends Object
An immutable response from a WatchClient.Watch.
  • Constructor Details

    • WatchEvent

      public WatchEvent(@NotNull @NotNull KeyValue keyValue, @NotNull @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequence rawKey, @NotNull @NotNull WatchEvent.Type type)
      When created from etcd, we provide the KeyValue and the rawKey as delivered from etcd.
      Parameters:
      keyValue - the key and value
      rawKey - the raw key
      type - the type of event
    • WatchEvent

      public WatchEvent(@NotNull @NotNull KeyValue keyValue, @NotNull @NotNull WatchEvent.Type type)
      For alternative implementations, we convert the keyValue KeyPath to a String and then to a ByteSequence for the rawKey.
      Parameters:
      keyValue - the key and value
      type - the type of event
  • Method Details

    • getKV

      public KeyValue getKV()
    • getRawKey

      @NotNull public @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequence getRawKey()
    • getType

      public WatchEvent.Type getType()
    • toString

      public String toString()
      Overrides:
      toString in class Object