Package io.oxia.client.api
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.oxia.client.api.Notification
Notification.KeyCreated, Notification.KeyDeleted, Notification.KeyModified, Notification.KeyRangeDelete -
Constructor Summary
ConstructorsConstructorDescriptionKeyRangeDelete(String startKeyInclusive, String endKeyExclusive) Creates an instance of aKeyRangeDeleterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theendKeyExclusiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thestartKeyInclusiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyRangeDelete
Creates an instance of aKeyRangeDeleterecord class.- Parameters:
startKeyInclusive- the value for thestartKeyInclusiverecord componentendKeyExclusive- the value for theendKeyExclusiverecord component
-
-
Method Details
-
key
- Specified by:
keyin interfaceNotification- Returns:
- The key of the record.
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
startKeyInclusive
Returns the value of thestartKeyInclusiverecord component.- Returns:
- the value of the
startKeyInclusiverecord component
-
endKeyExclusive
Returns the value of theendKeyExclusiverecord component.- Returns:
- the value of the
endKeyExclusiverecord component
-