Package codes.grow.packages.skywalking
Record Class NativeSpanRef
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.NativeSpanRef
- Record Components:
traceId- native trace idparentSegmentId- segment of the parent spanparentSpanId- parent span id within that segmenttype-CROSS_PROCESSorCROSS_THREAD
public record NativeSpanRef(String traceId, String parentSegmentId, int parentSpanId, String type)
extends Record
Cross-segment parent reference of a native span.
-
Constructor Summary
ConstructorsConstructorDescriptionNativeSpanRef(String traceId, String parentSegmentId, int parentSpanId, String type) Creates an instance of aNativeSpanRefrecord 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.Returns the value of theparentSegmentIdrecord component.intReturns the value of theparentSpanIdrecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
NativeSpanRef
Creates an instance of aNativeSpanRefrecord class.- Parameters:
traceId- the value for thetraceIdrecord componentparentSegmentId- the value for theparentSegmentIdrecord componentparentSpanId- the value for theparentSpanIdrecord componenttype- the value for thetyperecord 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 '=='. -
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord component
-
parentSegmentId
Returns the value of theparentSegmentIdrecord component.- Returns:
- the value of the
parentSegmentIdrecord component
-
parentSpanId
public int parentSpanId()Returns the value of theparentSpanIdrecord component.- Returns:
- the value of the
parentSpanIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-