Class CoreGlobalConfig

java.lang.Object
com.iohao.net.framework.CoreGlobalConfig

public final class CoreGlobalConfig extends Object
Global configuration constants for the ionet core framework.
Since:
25.1
Author:
渔民小镇
date:
2025-08-24
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    Frequency in milliseconds for cleaning up expired futures.
    static boolean
    Whether development mode is enabled, providing extra diagnostics.
    static boolean
    Whether to enable Aeron fragment assembler for large messages.
    static int
    Maximum number of fragments to assemble per poll operation.
    static String
    Human-readable publication name derived from netId.
    static int
    Buffer size in bytes for the Aeron publisher.
    static final BarSkeletonSetting
    Global business framework settings.
    static int
    Default timeout in milliseconds for request-response operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Get the future timeout in milliseconds, with a 200ms buffer added to the base timeout.
    static int
    Unique network identifier for this node, randomly generated at startup.
    static void
    setNetId(int netId)
    Set the network ID.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • setting

      public static final BarSkeletonSetting setting
      Global business framework settings.
    • netPubName

      public static String netPubName
      Human-readable publication name derived from netId.
    • timeoutMillis

      public static int timeoutMillis
      Default timeout in milliseconds for request-response operations.
    • cleanFrequency

      public static int cleanFrequency
      Frequency in milliseconds for cleaning up expired futures.
    • enableFragmentAssembler

      public static boolean enableFragmentAssembler
      Whether to enable Aeron fragment assembler for large messages.
    • fragmentLimit

      public static int fragmentLimit
      Maximum number of fragments to assemble per poll operation.
    • publisherBufferSize

      public static int publisherBufferSize
      Buffer size in bytes for the Aeron publisher.
    • devMode

      public static boolean devMode
      Whether development mode is enabled, providing extra diagnostics.
  • Method Details

    • setNetId

      public static void setNetId(int netId)
      Set the network ID. Must be greater than 1000.
      Parameters:
      netId - the network ID to set
    • getFutureTimeoutMillis

      public static int getFutureTimeoutMillis()
      Get the future timeout in milliseconds, with a 200ms buffer added to the base timeout.
      Returns:
      the timeout value in milliseconds
    • getNetId

      public static int getNetId()
      Unique network identifier for this node, randomly generated at startup.