Record Class SendAttempt.Backpressured
java.lang.Object
java.lang.Record
dev.restate.integration.SendAttempt.Backpressured
- Record Components:
ready- future completed when retrying may succeed
- All Implemented Interfaces:
SendAttempt
- Enclosing interface:
SendAttempt
public static record SendAttempt.Backpressured(CompletableFuture<@Nullable Void> ready)
extends Record
implements SendAttempt
The invocation was not accepted because the producer was backpressured.
ready completes
when retrying may succeed; it is a notification, not an admission reservation.-
Nested Class Summary
Nested classes/interfaces inherited from interface SendAttempt
SendAttempt.Accepted, SendAttempt.Backpressured -
Constructor Summary
ConstructorsConstructorDescriptionBackpressured(CompletableFuture<@Nullable Void> ready) Creates an instance of aBackpressuredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.CompletableFuture<@Nullable Void> ready()Returns the value of thereadyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Backpressured
Creates an instance of aBackpressuredrecord class.- Parameters:
ready- the value for thereadyrecord 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). -
ready
-