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 TypeFieldDescriptionbooleanDisables console input features.booleanEnables idle/heartbeat callback logs.booleanEnables logs for broadcast-listen callbacks when true.booleanEnables logs for request callbacks.booleanEnables logs when the client sends requests to the server.booleanWhen true, duplicate simulated commands are not allowed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
closeScanner
public boolean closeScannerDisables console input features.Recommended for pressure testing (set this property totrue). When enabled, all console-input-related features become unavailable. -
openLogListenBroadcast
public boolean openLogListenBroadcastEnables logs for broadcast-listen callbacks when true. -
openLogRequestCommand
public boolean openLogRequestCommandEnables logs when the client sends requests to the server. -
openLogRequestCallback
public boolean openLogRequestCallbackEnables logs for request callbacks. -
uniqueInputCommand
public boolean uniqueInputCommandWhen true, duplicate simulated commands are not allowed.Default isfalse, which disables duplicate checking. -
openLogIdle
public boolean openLogIdleEnables idle/heartbeat callback logs.
-
-
Constructor Details
-
ClientUserConfigs
public ClientUserConfigs()
-
-
Method Details
-
closeLog
public void closeLog()Disables simulated-request related logs.
-