接口 MessageListener<M extends Message>
-
- 类型参数:
M- Message type
- 所有已知实现类:
ResultMessageListener
public interface MessageListener<M extends Message>Sink for messages that are read asynchonously from the socket. Return whether the listener is done receiving messages.
-
-
方法详细资料
-
processMessage
default boolean processMessage(M message)
Process protocol message.- 参数:
message-Messageinstance- 返回:
- true - if this listener is done with processing the messages sequence and may be discarded; false - if the next message must be dispatched to the same listener
-
error
void error(Throwable ex)
Exceptionally complete underlying Future.- 参数:
ex- exception to pass to underlying Future.
-
-