Record Class CorrelationUse
java.lang.Object
java.lang.Record
com.shaft.capture.generate.api.CorrelationUse
- Record Components:
transactionId- the later transaction whose request reuses the valuelocation- where in that request the value was founddetail- header name whenlocationisCorrelationUse.Location.REQUEST_HEADER; empty otherwise
public record CorrelationUse(String transactionId, CorrelationUse.Location location, String detail)
extends Record
One place a correlated (previously VOLATILE) response value was found reused by a later
transaction's outbound request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere a correlated value was found reused in a later request. -
Constructor Summary
ConstructorsConstructorDescriptionCorrelationUse(String transactionId, CorrelationUse.Location location, String detail) Creates an instance of aCorrelationUserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionIdrecord component.
-
Constructor Details
-
CorrelationUse
Creates an instance of aCorrelationUserecord class.- Parameters:
transactionId- the value for thetransactionIdrecord componentlocation- the value for thelocationrecord componentdetail- the value for thedetailrecord 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). -
transactionId
Returns the value of thetransactionIdrecord component.- Returns:
- the value of the
transactionIdrecord component
-
location
-
detail
-