Record Class SendAttempt.Accepted
java.lang.Object
java.lang.Record
dev.restate.integration.SendAttempt.Accepted
- Record Components:
acknowledgement- future completed when Restate durably acknowledges the invocation
- All Implemented Interfaces:
SendAttempt
- Enclosing interface:
SendAttempt
public static record SendAttempt.Accepted(CompletableFuture<SendResult> acknowledgement)
extends Record
implements SendAttempt
The invocation was accepted; the future completes on durable acknowledgement.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SendAttempt
SendAttempt.Accepted, SendAttempt.Backpressured -
Constructor Summary
ConstructorsConstructorDescriptionAccepted(CompletableFuture<SendResult> acknowledgement) Creates an instance of aAcceptedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacknowledgementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Accepted
Creates an instance of aAcceptedrecord class.- Parameters:
acknowledgement- the value for theacknowledgementrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
acknowledgement
Returns the value of theacknowledgementrecord component.- Returns:
- the value of the
acknowledgementrecord component
-