Record Class ExternalSetting

java.lang.Object
java.lang.Record
com.iohao.net.external.core.ExternalSetting
Record Components:
port - The port for real players to connect
server - ExternalServerMessage
userSessions - User session manager
idleProcessSetting - Heartbeat-related settings
options - 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 Details

  • Constructor Details

    • ExternalSetting

      public ExternalSetting(int port, Server server, UserSessions<?,?> userSessions, IdleProcessSetting idleProcessSetting, AttrOptions options)
      Creates an instance of a ExternalSetting record class.
      Parameters:
      port - the value for the port record component
      server - the value for the server record component
      userSessions - the value for the userSessions record component
      idleProcessSetting - the value for the idleProcessSetting record component
      options - the value for the options record component
  • Method Details

    • netServerSetting

      public NetServerSetting netServerSetting()
    • convenientCommunication

      public ConvenientCommunication convenientCommunication()
    • getOptions

      public AttrOptions getOptions()
      Description copied from interface: AttrOptionDynamic
      Gets the dynamic member attributes (options)
      Specified by:
      getOptions in interface AttrOptionDynamic
      Returns:
      The dynamic member attributes
    • inject

      public void inject(Object o)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • port

      public int port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component
    • server

      public Server server()
      Returns the value of the server record component.
      Returns:
      the value of the server record component
    • userSessions

      public UserSessions<?,?> userSessions()
      Returns the value of the userSessions record component.
      Returns:
      the value of the userSessions record component
    • idleProcessSetting

      public IdleProcessSetting idleProcessSetting()
      Returns the value of the idleProcessSetting record component.
      Returns:
      the value of the idleProcessSetting record component
    • options

      public AttrOptions options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component