Class GetStatusHandler
java.lang.Object
io.github.theword.queqiao.core.protocol.AbstractProtocolHandler<EmptyPayload,Map<String,Object>>
io.github.theword.queqiao.core.protocol.handler.GetStatusHandler
-
Field Summary
Fields inherited from class io.github.theword.queqiao.core.protocol.AbstractProtocolHandler
handleApiService, logger -
Constructor Summary
ConstructorsConstructorDescriptionGetStatusHandler(org.slf4j.Logger logger, HandleApiService handleApiService) -
Method Summary
Methods inherited from class io.github.theword.queqiao.core.protocol.AbstractProtocolHandler
handle
-
Constructor Details
-
GetStatusHandler
-
-
Method Details
-
handlePayload
返回服务器状态快照Runtime 启动后由后台任务按配置间隔采集完整快照。本处理器只读取最近一次已发布的快照, 不会在连接处理线程中执行 Minecraft Server List Ping。
日志级别为 debug:该接口可能被高频轮询,INFO 级别会造成日志刷屏。
- Specified by:
handlePayloadin classAbstractProtocolHandler<EmptyPayload,Map<String, Object>> - Parameters:
payload- 空负载- Returns:
- 状态快照 Map
-