Record Class Notification.KeyRangeDelete

java.lang.Object
java.lang.Record
io.oxia.client.api.Notification.KeyRangeDelete
Record Components:
startKeyInclusive - The range deletion start key. (inclusive)
endKeyExclusive - The range deletion end key. (exclusive)
All Implemented Interfaces:
Notification
Enclosing interface:
Notification

public static record Notification.KeyRangeDelete(String startKeyInclusive, String endKeyExclusive) extends Record implements Notification
The record associated with the key range has been deleted.
  • Constructor Details

    • KeyRangeDelete

      public KeyRangeDelete(String startKeyInclusive, String endKeyExclusive)
      Creates an instance of a KeyRangeDelete record class.
      Parameters:
      startKeyInclusive - the value for the startKeyInclusive record component
      endKeyExclusive - the value for the endKeyExclusive record component
  • Method Details

    • key

      public String key()
      Specified by:
      key in interface Notification
      Returns:
      The key of the record.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • startKeyInclusive

      public String startKeyInclusive()
      Returns the value of the startKeyInclusive record component.
      Returns:
      the value of the startKeyInclusive record component
    • endKeyExclusive

      public String endKeyExclusive()
      Returns the value of the endKeyExclusive record component.
      Returns:
      the value of the endKeyExclusive record component