Package com.btcvelocity.api.bridge
Record Class BridgeMessage.QueueStatusResponse
java.lang.Object
java.lang.Record
com.btcvelocity.api.bridge.BridgeMessage.QueueStatusResponse
- Record Components:
serverName- the name of the responding serverbackendQueueSize- the number of players waiting in the backend's own queue
- All Implemented Interfaces:
BridgeMessage
- Enclosing interface:
BridgeMessage
public static record BridgeMessage.QueueStatusResponse(String serverName, int backendQueueSize)
extends Record
implements BridgeMessage
Backend -> Proxy: a response to a queue-status query, reporting the backend's
own queue depth.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.btcvelocity.api.bridge.BridgeMessage
BridgeMessage.ConnectRequest, BridgeMessage.Health, BridgeMessage.PartyWarp, BridgeMessage.QueueJoin, BridgeMessage.QueueLeave, BridgeMessage.QueueStatusResponse, BridgeMessage.RequestStatus, BridgeMessage.WorldLoaded, BridgeMessage.WorldPreload, BridgeMessage.WorldUnloaded -
Constructor Summary
ConstructorsConstructorDescriptionQueueStatusResponse(String serverName, int backendQueueSize) Creates an instance of aQueueStatusResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebackendQueueSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the string discriminator used to route this message during (de)serialization.
-
Constructor Details
-
QueueStatusResponse
Creates an instance of aQueueStatusResponserecord class.- Parameters:
serverName- the value for theserverNamerecord componentbackendQueueSize- the value for thebackendQueueSizerecord component
-
-
Method Details
-
type
Description copied from interface:BridgeMessageReturns the string discriminator used to route this message during (de)serialization.- Specified by:
typein interfaceBridgeMessage- Returns:
- the message type identifier
-
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 '=='. -
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
backendQueueSize
public int backendQueueSize()Returns the value of thebackendQueueSizerecord component.- Returns:
- the value of the
backendQueueSizerecord component
-