Record Class JdkWebSocketTransport.Limits

java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.control.JdkWebSocketTransport.Limits
Enclosing class:
JdkWebSocketTransport

public static record JdkWebSocketTransport.Limits(int maxMessageBytes, int maxReceiveParts, int maxPendingSends, long maxPendingBytes, Duration connectTimeout, Duration receiveTimeout, Duration sendTimeout, Duration closeTimeout) extends Record
Limits apply to UTF-8 bytes, pending sends including the active send, and JDK receive callbacks.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Limits(int maxMessageBytes, int maxReceiveParts, int maxPendingSends, long maxPendingBytes, Duration connectTimeout, Duration receiveTimeout, Duration sendTimeout, Duration closeTimeout)
    Creates an instance of a Limits record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the closeTimeout record component.
    Returns the value of the connectTimeout 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 maxMessageBytes record component.
    long
    Returns the value of the maxPendingBytes record component.
    int
    Returns the value of the maxPendingSends record component.
    int
    Returns the value of the maxReceiveParts record component.
    Returns the value of the receiveTimeout record component.
    Returns the value of the sendTimeout record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Limits

      public Limits(int maxMessageBytes, int maxReceiveParts, int maxPendingSends, long maxPendingBytes, Duration connectTimeout, Duration receiveTimeout, Duration sendTimeout, Duration closeTimeout)
      Creates an instance of a Limits record class.
      Parameters:
      maxMessageBytes - the value for the maxMessageBytes record component
      maxReceiveParts - the value for the maxReceiveParts record component
      maxPendingSends - the value for the maxPendingSends record component
      maxPendingBytes - the value for the maxPendingBytes record component
      connectTimeout - the value for the connectTimeout record component
      receiveTimeout - the value for the receiveTimeout record component
      sendTimeout - the value for the sendTimeout record component
      closeTimeout - the value for the closeTimeout 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.
    • maxMessageBytes

      public int maxMessageBytes()
      Returns the value of the maxMessageBytes record component.
      Returns:
      the value of the maxMessageBytes record component
    • maxReceiveParts

      public int maxReceiveParts()
      Returns the value of the maxReceiveParts record component.
      Returns:
      the value of the maxReceiveParts record component
    • maxPendingSends

      public int maxPendingSends()
      Returns the value of the maxPendingSends record component.
      Returns:
      the value of the maxPendingSends record component
    • maxPendingBytes

      public long maxPendingBytes()
      Returns the value of the maxPendingBytes record component.
      Returns:
      the value of the maxPendingBytes record component
    • connectTimeout

      public Duration connectTimeout()
      Returns the value of the connectTimeout record component.
      Returns:
      the value of the connectTimeout record component
    • receiveTimeout

      public Duration receiveTimeout()
      Returns the value of the receiveTimeout record component.
      Returns:
      the value of the receiveTimeout record component
    • sendTimeout

      public Duration sendTimeout()
      Returns the value of the sendTimeout record component.
      Returns:
      the value of the sendTimeout record component
    • closeTimeout

      public Duration closeTimeout()
      Returns the value of the closeTimeout record component.
      Returns:
      the value of the closeTimeout record component