Package org.elasticsearch.test.transport
Record Class CapturingTransport.CapturedRequest
java.lang.Object
java.lang.Record
org.elasticsearch.test.transport.CapturingTransport.CapturedRequest
- Enclosing class:
CapturingTransport
public static record CapturingTransport.CapturedRequest(DiscoveryNode node, long requestId, String action, TransportRequest request)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCapturedRequest(DiscoveryNode node, long requestId, String action, TransportRequest request) Creates an instance of aCapturedRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.node()Returns the value of thenoderecord component.request()Returns the value of therequestrecord component.longReturns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CapturedRequest
Creates an instance of aCapturedRequestrecord class.- Parameters:
node- the value for thenoderecord componentrequestId- the value for therequestIdrecord componentaction- the value for theactionrecord componentrequest- the value for therequestrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
requestId
public long requestId()Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-