Record Class NativeAdmissionServerChannel.Stats

java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.NativeAdmissionServerChannel.Stats
Enclosing class:
NativeAdmissionServerChannel

public static record NativeAdmissionServerChannel.Stats(AdmissionGate.Stats admission, int liveNativePeers, long creationAttempts, long droppedEvents, NativeAdmissionServerChannel.Stats.Mux mux) extends Record
Point-in-time counters for operator diagnostics. mux is null before the endpoint binds or after it closes.
  • Constructor Details

    • Stats

      public Stats(AdmissionGate.Stats admission, int liveNativePeers, long creationAttempts, long droppedEvents, NativeAdmissionServerChannel.Stats.Mux mux)
      Creates an instance of a Stats record class.
      Parameters:
      admission - the value for the admission record component
      liveNativePeers - the value for the liveNativePeers record component
      creationAttempts - the value for the creationAttempts record component
      droppedEvents - the value for the droppedEvents record component
      mux - the value for the mux 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.
    • admission

      public AdmissionGate.Stats admission()
      Returns the value of the admission record component.
      Returns:
      the value of the admission record component
    • liveNativePeers

      public int liveNativePeers()
      Returns the value of the liveNativePeers record component.
      Returns:
      the value of the liveNativePeers record component
    • creationAttempts

      public long creationAttempts()
      Returns the value of the creationAttempts record component.
      Returns:
      the value of the creationAttempts record component
    • droppedEvents

      public long droppedEvents()
      Returns the value of the droppedEvents record component.
      Returns:
      the value of the droppedEvents record component
    • mux

      Returns the value of the mux record component.
      Returns:
      the value of the mux record component