Files
simapi-cj/src/configurations/SimApiSynapseOptions.cj
T
2026-08-16 12:46:15 +08:00

52 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 移植自 C# 项目 SimApiE:\simcu\simapi-net),遵循 MIT 许可证。
* 对齐 C# 的 Configurations/SimApiSynapseOptions.cs。
*/
package simapi.configurations
/**
* MQTT 通信配置(默认值与 C# 一致)。
*/
public class SimApiSynapseOptions {
/**
* Mqtt 服务器的 Websocket 地址。
*/
public var websocket: String = ""
public var username: String = ""
public var password: String = ""
public var sysName: String = ""
public var appName: String = ""
public var appId: String = ""
/**
* RPC 超时秒数(默认 3)。
*/
public var rpcTimeout: Int64 = 3
/**
* Event 是否使用负载均衡:订阅 $queue 主题,消息分发给不同 AppId。
* false 时多个 AppId 都可同时收到消息(默认 false)。
*/
public var eventLoadBalancing: Bool = false
/**
* 启用分布式配置存储(默认 true)。
*/
public var enableConfigStore: Bool = true
/**
* 禁用事件客户端(默认 false)。
*/
public var disableEventClient: Bool = false
/**
* 禁用 RPC 客户端(默认 false)。
*/
public var disableRpcClient: Bool = false
public init() {}
}