Class ClientUserConfigs
java.lang.Object
com.iohao.net.extension.client.kit.ClientUserConfigs
Configuration flags for simulated client behavior and logging.
- Author:
- 渔民小镇
- date:
- 2023-07-15
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanDisables console input features.static booleanEnables idle/heartbeat callback logs.static booleanEnables logs for broadcast-listen callbacks when true.static booleanEnables logs for request callbacks.static booleanEnables logs when the client sends requests to the server.static booleanWhen true, duplicate simulated commands are not allowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseLog()Disables simulated-request related logs.
-
Field Details
-
closeScanner
public static boolean closeScannerDisables console input features.Recommended for pressure testing (set this property totrue). When enabled, all console-input-related features become unavailable. -
openLogListenBroadcast
public static boolean openLogListenBroadcastEnables logs for broadcast-listen callbacks when true. -
openLogRequestCommand
public static boolean openLogRequestCommandEnables logs when the client sends requests to the server. -
openLogRequestCallback
public static boolean openLogRequestCallbackEnables logs for request callbacks. -
uniqueInputCommand
public static boolean uniqueInputCommandWhen true, duplicate simulated commands are not allowed.Default isfalse, which disables duplicate checking. -
openLogIdle
public static boolean openLogIdleEnables idle/heartbeat callback logs.
-
-
Method Details
-
closeLog
public static void closeLog()Disables simulated-request related logs.
-