Class CoreGlobalConfig
java.lang.Object
com.iohao.net.framework.CoreGlobalConfig
Global configuration constants for the ionet core framework.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-08-24
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intFrequency in milliseconds for cleaning up expired futures.static booleanWhether development mode is enabled, providing extra diagnostics.static booleanWhether to enable Aeron fragment assembler for large messages.static intMaximum number of fragments to assemble per poll operation.static StringHuman-readable publication name derived fromnetId.static intBuffer size in bytes for the Aeron publisher.static final BarSkeletonSettingGlobal business framework settings.static intDefault timeout in milliseconds for request-response operations. -
Method Summary
-
Field Details
-
setting
Global business framework settings. -
netPubName
Human-readable publication name derived fromnetId. -
timeoutMillis
public static int timeoutMillisDefault timeout in milliseconds for request-response operations. -
cleanFrequency
public static int cleanFrequencyFrequency in milliseconds for cleaning up expired futures. -
enableFragmentAssembler
public static boolean enableFragmentAssemblerWhether to enable Aeron fragment assembler for large messages. -
fragmentLimit
public static int fragmentLimitMaximum number of fragments to assemble per poll operation. -
publisherBufferSize
public static int publisherBufferSizeBuffer size in bytes for the Aeron publisher. -
devMode
public static boolean devModeWhether 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.
-