public class RequestMessageProcessor extends Object
| 构造器和说明 |
|---|
RequestMessageProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ack(io.netty.channel.Channel channel,
String messageId)
确认收到Request
Confirm receipt of Request
|
static void |
callCommands(Map requestMethods)
处理Request,不返回结果
Processing Request, automatically calling the correct method, returning the result
|
static void |
callCommandsWithPeriod(io.netty.channel.Channel channel,
Map requestMethods,
String messageId,
boolean isSubscribe)
处理Request,自动调用正确的方法,返回结果
Processing Request, automatically calling the correct method, returning the result
|
static void |
negotiateConnectionResponse(io.netty.channel.Channel channel,
Message message)
确认握手成功
Confirm successful handshake
|
static void |
responseWithEventCount(io.netty.channel.Channel channel,
Response realResponse)
处理Request,如果达到EventCount的发送条件,则发送
Processing Request, if EventCount's sending condition is met, then send
|
static boolean |
responseWithPeriod(ConnectData channelData,
Message message,
Request request)
处理Request,返回bool类型表示处理完之后是保留还是丢弃
After current processing, do need to keep the Request information and wait for the next processing?
|
static void |
serviceNotStarted(io.netty.channel.Channel channel,
String messageId)
服务还未启动完成
The service has not been started yet.
|
static void |
unsubscribe(ConnectData channelData,
Message message)
取消订阅
For Unsubscribe
|
public static void negotiateConnectionResponse(io.netty.channel.Channel channel,
Message message)
throws com.fasterxml.jackson.core.JsonProcessingException
channel - 用于发送消息 / Used to send messagecom.fasterxml.jackson.core.JsonProcessingException - JSON解析错误 / JSON parsing errorpublic static void ack(io.netty.channel.Channel channel,
String messageId)
throws com.fasterxml.jackson.core.JsonProcessingException
channel - 用于发送消息 / Used to send messagemessageId - 原始消息ID / The origin message IDcom.fasterxml.jackson.core.JsonProcessingException - JSON解析错误 / JSON parsing errorpublic static void serviceNotStarted(io.netty.channel.Channel channel,
String messageId)
throws com.fasterxml.jackson.core.JsonProcessingException
channel - 链接通道messageId - 请求IDcom.fasterxml.jackson.core.JsonProcessingExceptionpublic static void unsubscribe(ConnectData channelData, Message message)
message - 取消订阅的消息体 / Unsubscribe messagepublic static boolean responseWithPeriod(ConnectData channelData, Message message, Request request)
channelData - 用于发送消息 / Used to send messagemessage - 原始消息 / The origin messagerequest - 请求 / The requestpublic static void callCommandsWithPeriod(io.netty.channel.Channel channel,
Map requestMethods,
String messageId,
boolean isSubscribe)
throws com.fasterxml.jackson.core.JsonProcessingException
channel - 用于发送消息 / Used to send messagerequestMethods - 请求的方法集合 / The collections of request methodmessageId - 原始消息ID / The origin message IDisSubscribe - is subscribe messagecom.fasterxml.jackson.core.JsonProcessingException - 服务器端处理异常public static void callCommands(Map requestMethods) throws com.fasterxml.jackson.core.JsonProcessingException
requestMethods - 请求的方法集合 / The collections of request methodcom.fasterxml.jackson.core.JsonProcessingException - 服务器端处理异常public static void responseWithEventCount(io.netty.channel.Channel channel,
Response realResponse)
channel - 用于发送消息 / Used to send messagerealResponse - 订阅事件触发,返回数据Copyright © 2021. All rights reserved.