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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecloseTimeoutrecord component.Returns the value of theconnectTimeoutrecord 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 themaxMessageBytesrecord component.longReturns the value of themaxPendingBytesrecord component.intReturns the value of themaxPendingSendsrecord component.intReturns the value of themaxReceivePartsrecord component.Returns the value of thereceiveTimeoutrecord component.Returns the value of thesendTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aLimitsrecord class.- Parameters:
maxMessageBytes- the value for themaxMessageBytesrecord componentmaxReceiveParts- the value for themaxReceivePartsrecord componentmaxPendingSends- the value for themaxPendingSendsrecord componentmaxPendingBytes- the value for themaxPendingBytesrecord componentconnectTimeout- the value for theconnectTimeoutrecord componentreceiveTimeout- the value for thereceiveTimeoutrecord componentsendTimeout- the value for thesendTimeoutrecord componentcloseTimeout- the value for thecloseTimeoutrecord 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 '=='. -
maxMessageBytes
public int maxMessageBytes()Returns the value of themaxMessageBytesrecord component.- Returns:
- the value of the
maxMessageBytesrecord component
-
maxReceiveParts
public int maxReceiveParts()Returns the value of themaxReceivePartsrecord component.- Returns:
- the value of the
maxReceivePartsrecord component
-
maxPendingSends
public int maxPendingSends()Returns the value of themaxPendingSendsrecord component.- Returns:
- the value of the
maxPendingSendsrecord component
-
maxPendingBytes
public long maxPendingBytes()Returns the value of themaxPendingBytesrecord component.- Returns:
- the value of the
maxPendingBytesrecord component
-
connectTimeout
Returns the value of theconnectTimeoutrecord component.- Returns:
- the value of the
connectTimeoutrecord component
-
receiveTimeout
Returns the value of thereceiveTimeoutrecord component.- Returns:
- the value of the
receiveTimeoutrecord component
-
sendTimeout
Returns the value of thesendTimeoutrecord component.- Returns:
- the value of the
sendTimeoutrecord component
-
closeTimeout
Returns the value of thecloseTimeoutrecord component.- Returns:
- the value of the
closeTimeoutrecord component
-