Configuration
CoreGlobalConfig
Framework global configuration.
| PropertyName | Type | DefaultValue | Description |
|---|---|---|---|
| netId | int | Random value | Network process ID, must be unique. |
| timeoutMillis | int | 3000 | Request timeout in milliseconds |
| enableFragmentAssembler | boolean | false | Automatic fragmentation for large Aeron messages |
| fragmentLimit | int | 100 | Maximum number of messages Aeron processes per cycle |
| publisherBufferSize | int | 1024 * 64 | Maximum message size transmitted by Aeron |
| devMode | boolean | false | Developer mode |
BarSkeletonSetting
Business framework related configuration.
class OneApplication {
static void main() {
BarSkeletonSetting setting = CoreGlobalConfig.setting;
}
}
| PropertyName | Type | DefaultValue | Description |
|---|---|---|---|
| cmdMaxLen | int | 32 | Maximum value of the main route |
| subCmdMaxLen | int | 96 | Maximum value of the sub-route |
| boolean | false | Print business framework-related information | |
| validator | boolean | false | JSR380 validation |
| validatorAutoCall | boolean | false | JSR380 automatic validation |
| parseDoc | boolean | false | Parse source code documentation. When true, source code line numbers can be obtained, but startup time will be affected. Recommended to enable only in development mode. |
ExternalGlobalConfig
External server related configuration.
| PropertyName | Type | DefaultValue | Description |
|---|---|---|---|
| externalPort | int | 10100 | Default external server port |
| accessAuthenticationHook | AccessAuthenticationHook | - | Route access permission configuration |
| externalCmdCache | ExternalCmdCache | - | External server cache configuration |
| enableLoggerHandler | boolean | true | Print NettyHandler-related logs |
| websocketPath | String | /websocket | websocketPath connection address. Examples
|
| maxFramePayloadLength | int | 1024 * 1024 | Maximum message size |