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

    Constructors
    Constructor
    Description
    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 a RuntimeMetricsSnapshot record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the activeInvocations record component.
    long
    Returns the value of the completedInvocations record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the queuedInvocations record component.
    int
    Returns the value of the registeredJavaCallbacks record component.
    int
    Returns the value of the registeredResources record component.
    long
    Returns the value of the rejectedInvocations record component.
    int
    Returns the value of the sourceMaps record component.
    Returns the value of the state record component.
    long
    Returns the value of the submittedInvocations record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the unhandledErrors record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a RuntimeMetricsSnapshot record class.
      Parameters:
      state - the value for the state record component
      activeInvocations - the value for the activeInvocations record component
      queuedInvocations - the value for the queuedInvocations record component
      submittedInvocations - the value for the submittedInvocations record component
      completedInvocations - the value for the completedInvocations record component
      rejectedInvocations - the value for the rejectedInvocations record component
      unhandledErrors - the value for the unhandledErrors record component
      registeredResources - the value for the registeredResources record component
      registeredJavaCallbacks - the value for the registeredJavaCallbacks record component
      sourceMaps - the value for the sourceMaps record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • state

      public RuntimeState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • activeInvocations

      public int activeInvocations()
      Returns the value of the activeInvocations record component.
      Returns:
      the value of the activeInvocations record component
    • queuedInvocations

      public int queuedInvocations()
      Returns the value of the queuedInvocations record component.
      Returns:
      the value of the queuedInvocations record component
    • submittedInvocations

      public long submittedInvocations()
      Returns the value of the submittedInvocations record component.
      Returns:
      the value of the submittedInvocations record component
    • completedInvocations

      public long completedInvocations()
      Returns the value of the completedInvocations record component.
      Returns:
      the value of the completedInvocations record component
    • rejectedInvocations

      public long rejectedInvocations()
      Returns the value of the rejectedInvocations record component.
      Returns:
      the value of the rejectedInvocations record component
    • unhandledErrors

      public long unhandledErrors()
      Returns the value of the unhandledErrors record component.
      Returns:
      the value of the unhandledErrors record component
    • registeredResources

      public int registeredResources()
      Returns the value of the registeredResources record component.
      Returns:
      the value of the registeredResources record component
    • registeredJavaCallbacks

      public int registeredJavaCallbacks()
      Returns the value of the registeredJavaCallbacks record component.
      Returns:
      the value of the registeredJavaCallbacks record component
    • sourceMaps

      public int sourceMaps()
      Returns the value of the sourceMaps record component.
      Returns:
      the value of the sourceMaps record component