Record Class ClientRequestDeduplicator.InFlightRequest
java.lang.Object
java.lang.Record
com.loomcache.client.ClientRequestDeduplicator.InFlightRequest
- Enclosing class:
ClientRequestDeduplicator
public static record ClientRequestDeduplicator.InFlightRequest(String requestId, ClientRequestDeduplicator.CoalescingKey coalescingKey, CompletableFuture<?> future, long createdAt)
extends Record
Record representing an in-flight request.
-
Constructor Summary
ConstructorsConstructorDescriptionInFlightRequest(String requestId, ClientRequestDeduplicator.CoalescingKey coalescingKey, CompletableFuture<?> future, long createdAt) Creates an instance of aInFlightRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoalescingKeyrecord component.longReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.future()Returns the value of thefuturerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InFlightRequest
public InFlightRequest(String requestId, ClientRequestDeduplicator.CoalescingKey coalescingKey, CompletableFuture<?> future, long createdAt) Creates an instance of aInFlightRequestrecord class.- Parameters:
requestId- the value for therequestIdrecord componentcoalescingKey- the value for thecoalescingKeyrecord componentfuture- the value for thefuturerecord componentcreatedAt- the value for thecreatedAtrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
coalescingKey
Returns the value of thecoalescingKeyrecord component.- Returns:
- the value of the
coalescingKeyrecord component
-
future
Returns the value of thefuturerecord component.- Returns:
- the value of the
futurerecord component
-
createdAt
public long createdAt()Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-