Record Class Operation.WriteOperation.DeleteOperation
java.lang.Object
java.lang.Record
io.streamnative.oxia.client.batch.Operation.WriteOperation.DeleteOperation
- All Implemented Interfaces:
Operation<Boolean>,Operation.WriteOperation<Boolean>
- Enclosing interface:
- Operation.WriteOperation<R>
public static record Operation.WriteOperation.DeleteOperation(@NonNull CompletableFuture<Boolean> callback, @NonNull String key, @NonNull OptionalLong expectedVersionId)
extends Record
implements Operation.WriteOperation<Boolean>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.streamnative.oxia.client.batch.Operation
Operation.ReadOperation<R>, Operation.WriteOperation<R>Nested classes/interfaces inherited from interface io.streamnative.oxia.client.batch.Operation.WriteOperation
Operation.WriteOperation.DeleteOperation, Operation.WriteOperation.DeleteRangeOperation, Operation.WriteOperation.PutOperation -
Constructor Summary
ConstructorsConstructorDescriptionDeleteOperation(@NonNull CompletableFuture<Boolean> callback, @NonNull String key) DeleteOperation(@NonNull CompletableFuture<Boolean> callback, @NonNull String key, @NonNull OptionalLong expectedVersionId) Creates an instance of aDeleteOperationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull CompletableFuture<Boolean>callback()Returns the value of thecallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull OptionalLongReturns the value of theexpectedVersionIdrecord component.final inthashCode()Returns a hash code value for this object.@NonNull Stringkey()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeleteOperation
public DeleteOperation(@NonNull @NonNull CompletableFuture<Boolean> callback, @NonNull @NonNull String key, @NonNull @NonNull OptionalLong expectedVersionId) Creates an instance of aDeleteOperationrecord class.- Parameters:
callback- the value for thecallbackrecord componentkey- the value for thekeyrecord componentexpectedVersionId- the value for theexpectedVersionIdrecord component
-
DeleteOperation
public DeleteOperation(@NonNull @NonNull CompletableFuture<Boolean> callback, @NonNull @NonNull String key)
-
-
Method Details
-
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). -
callback
Returns the value of thecallbackrecord component. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
expectedVersionId
Returns the value of theexpectedVersionIdrecord component.- Returns:
- the value of the
expectedVersionIdrecord component
-