Record Class SlowOperationDetector.SlowOperationRecord
java.lang.Object
java.lang.Record
com.loomcache.server.observability.SlowOperationDetector.SlowOperationRecord
- Enclosing class:
SlowOperationDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecorrelationIdrecord component.@NonNull Durationduration()longReturns the value of theelapsedNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageTyperecord component.nodeId()Returns the value of thenodeIdrecord component.longReturns the value of theobservedAtNanosrecord component.peerId()Returns the value of thepeerIdrecord component.booleansampled()Returns the value of thesampledrecord component.Returns the value of thestackTracerecord component.longReturns the value of thestartNanosrecord component.Returns the value of thethreadNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlowOperationRecord
public SlowOperationRecord(String nodeId, String peerId, String messageType, int correlationId, String threadName, long startNanos, long observedAtNanos, long elapsedNanos, boolean sampled, List<String> stackTrace) Creates an instance of aSlowOperationRecordrecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentpeerId- the value for thepeerIdrecord componentmessageType- the value for themessageTyperecord componentcorrelationId- the value for thecorrelationIdrecord componentthreadName- the value for thethreadNamerecord componentstartNanos- the value for thestartNanosrecord componentobservedAtNanos- the value for theobservedAtNanosrecord componentelapsedNanos- the value for theelapsedNanosrecord componentsampled- the value for thesampledrecord componentstackTrace- the value for thestackTracerecord component
-
-
Method Details
-
duration
-
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. -
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
peerId
Returns the value of thepeerIdrecord component.- Returns:
- the value of the
peerIdrecord component
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
correlationId
public int correlationId()Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
threadName
Returns the value of thethreadNamerecord component.- Returns:
- the value of the
threadNamerecord component
-
startNanos
public long startNanos()Returns the value of thestartNanosrecord component.- Returns:
- the value of the
startNanosrecord component
-
observedAtNanos
public long observedAtNanos()Returns the value of theobservedAtNanosrecord component.- Returns:
- the value of the
observedAtNanosrecord component
-
elapsedNanos
public long elapsedNanos()Returns the value of theelapsedNanosrecord component.- Returns:
- the value of the
elapsedNanosrecord component
-
sampled
public boolean sampled()Returns the value of thesampledrecord component.- Returns:
- the value of the
sampledrecord component
-
stackTrace
-