Package dev.shamoo.runtime.core
Record Class RuntimeMetricsSnapshot
java.lang.Object
java.lang.Record
dev.shamoo.runtime.core.RuntimeMetricsSnapshot
public record RuntimeMetricsSnapshot(RuntimeState state, int activeInvocations, int queuedInvocations, long submittedInvocations, long completedInvocations, long rejectedInvocations, long unhandledErrors, int registeredResources, int registeredJavaCallbacks, int sourceMaps)
extends Record
Truly measured per-runtime counters. Active native handles are intentionally not inferred.
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeMetricsSnapshot(RuntimeState state, int activeInvocations, int queuedInvocations, long submittedInvocations, long completedInvocations, long rejectedInvocations, long unhandledErrors, int registeredResources, int registeredJavaCallbacks, int sourceMaps) Creates an instance of aRuntimeMetricsSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveInvocationsrecord component.longReturns the value of thecompletedInvocationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thequeuedInvocationsrecord component.intReturns the value of theregisteredJavaCallbacksrecord component.intReturns the value of theregisteredResourcesrecord component.longReturns the value of therejectedInvocationsrecord component.intReturns the value of thesourceMapsrecord component.state()Returns the value of thestaterecord component.longReturns the value of thesubmittedInvocationsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theunhandledErrorsrecord component.
-
Constructor Details
-
RuntimeMetricsSnapshot
public RuntimeMetricsSnapshot(RuntimeState state, int activeInvocations, int queuedInvocations, long submittedInvocations, long completedInvocations, long rejectedInvocations, long unhandledErrors, int registeredResources, int registeredJavaCallbacks, int sourceMaps) Creates an instance of aRuntimeMetricsSnapshotrecord class.- Parameters:
state- the value for thestaterecord componentactiveInvocations- the value for theactiveInvocationsrecord componentqueuedInvocations- the value for thequeuedInvocationsrecord componentsubmittedInvocations- the value for thesubmittedInvocationsrecord componentcompletedInvocations- the value for thecompletedInvocationsrecord componentrejectedInvocations- the value for therejectedInvocationsrecord componentunhandledErrors- the value for theunhandledErrorsrecord componentregisteredResources- the value for theregisteredResourcesrecord componentregisteredJavaCallbacks- the value for theregisteredJavaCallbacksrecord componentsourceMaps- the value for thesourceMapsrecord 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 '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
activeInvocations
public int activeInvocations()Returns the value of theactiveInvocationsrecord component.- Returns:
- the value of the
activeInvocationsrecord component
-
queuedInvocations
public int queuedInvocations()Returns the value of thequeuedInvocationsrecord component.- Returns:
- the value of the
queuedInvocationsrecord component
-
submittedInvocations
public long submittedInvocations()Returns the value of thesubmittedInvocationsrecord component.- Returns:
- the value of the
submittedInvocationsrecord component
-
completedInvocations
public long completedInvocations()Returns the value of thecompletedInvocationsrecord component.- Returns:
- the value of the
completedInvocationsrecord component
-
rejectedInvocations
public long rejectedInvocations()Returns the value of therejectedInvocationsrecord component.- Returns:
- the value of the
rejectedInvocationsrecord component
-
unhandledErrors
public long unhandledErrors()Returns the value of theunhandledErrorsrecord component.- Returns:
- the value of the
unhandledErrorsrecord component
-
registeredResources
public int registeredResources()Returns the value of theregisteredResourcesrecord component.- Returns:
- the value of the
registeredResourcesrecord component
-
registeredJavaCallbacks
public int registeredJavaCallbacks()Returns the value of theregisteredJavaCallbacksrecord component.- Returns:
- the value of the
registeredJavaCallbacksrecord component
-
sourceMaps
public int sourceMaps()Returns the value of thesourceMapsrecord component.- Returns:
- the value of the
sourceMapsrecord component
-