Record Class ServerOfflineMessage
java.lang.Object
java.lang.Record
com.iohao.net.framework.protocol.ServerOfflineMessage
- Record Components:
serverId- the ID of the server that went offline
Notification record indicating that a server has gone offline.
Published by the center server when a registered server disconnects or is detected
as unavailable. Consumers use the serverId to clean up routing tables and
release associated resources.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-25
-
Constructor Summary
ConstructorsConstructorDescriptionServerOfflineMessage(int serverId) Creates an instance of aServerOfflineMessagerecord 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.intserverId()Returns the value of theserverIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerOfflineMessage
public ServerOfflineMessage(int serverId) Creates an instance of aServerOfflineMessagerecord class.- Parameters:
serverId- the value for theserverIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
serverId
-