Package com.btcvelocity.api.bridge
Record Class BridgeMessage.ConnectRequest
java.lang.Object
java.lang.Record
com.btcvelocity.api.bridge.BridgeMessage.ConnectRequest
- Record Components:
uuid- the player's unique idtargetServer- the name of the destination server
- All Implemented Interfaces:
BridgeMessage
- Enclosing interface:
BridgeMessage
public static record BridgeMessage.ConnectRequest(UUID uuid, String targetServer)
extends Record
implements BridgeMessage
Backend -> Proxy: move a single player (identified by UUID) to another backend
server. The proxy resolves the player through its cluster registry and issues the
move, so the player need not be connected to the requesting backend.
-
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
ConstructorsConstructorDescriptionConnectRequest(UUID uuid, String targetServer) Creates an instance of aConnectRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetargetServerrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the string discriminator used to route this message during (de)serialization.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
ConnectRequest
Creates an instance of aConnectRequestrecord class.- Parameters:
uuid- the value for theuuidrecord componenttargetServer- the value for thetargetServerrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
targetServer
Returns the value of thetargetServerrecord component.- Returns:
- the value of the
targetServerrecord component
-