Record Class ExternalSetting
java.lang.Object
java.lang.Record
com.iohao.net.external.core.ExternalSetting
- Record Components:
port- The port for real players to connectserver- ExternalServerMessageuserSessions- User session manageridleProcessSetting- Heartbeat-related settingsoptions- options
- All Implemented Interfaces:
AttrOptionDynamic
public record ExternalSetting(int port, Server server, UserSessions<?,?> userSessions, IdleProcessSetting idleProcessSetting, AttrOptions options)
extends Record
implements AttrOptionDynamic
ExternalSetting
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-10-15
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalSetting(int port, Server server, UserSessions<?, ?> userSessions, IdleProcessSetting idleProcessSetting, AttrOptions options) Creates an instance of aExternalSettingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Gets the dynamic member attributes (options)final inthashCode()Returns a hash code value for this object.Returns the value of theidleProcessSettingrecord component.voidoptions()Returns the value of theoptionsrecord component.intport()Returns the value of theportrecord component.server()Returns the value of theserverrecord component.final StringtoString()Returns a string representation of this record class.UserSessions<?, ?> Returns the value of theuserSessionsrecord component.Methods inherited from interface AttrOptionDynamic
ifNull, ifPresent, option, option, optionValue
-
Field Details
-
netServerSetting
-
-
Constructor Details
-
ExternalSetting
public ExternalSetting(int port, Server server, UserSessions<?, ?> userSessions, IdleProcessSetting idleProcessSetting, AttrOptions options) Creates an instance of aExternalSettingrecord class.- Parameters:
port- the value for theportrecord componentserver- the value for theserverrecord componentuserSessions- the value for theuserSessionsrecord componentidleProcessSetting- the value for theidleProcessSettingrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
netServerSetting
-
convenientCommunication
-
getOptions
Description copied from interface:AttrOptionDynamicGets the dynamic member attributes (options)- Specified by:
getOptionsin interfaceAttrOptionDynamic- Returns:
- The dynamic member attributes
-
inject
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
port
-
server
-
userSessions
Returns the value of theuserSessionsrecord component.- Returns:
- the value of the
userSessionsrecord component
-
idleProcessSetting
Returns the value of theidleProcessSettingrecord component.- Returns:
- the value of the
idleProcessSettingrecord component
-
options
-