@FunctionalInterface public interface MessageToRunnable
| 限定符和类型 | 方法和说明 |
|---|---|
default Runnable |
onClose(io.netty.channel.ChannelHandlerContext context)
Create a close handler IO task
|
default Runnable |
onError(io.netty.channel.ChannelHandlerContext context,
Throwable throwable)
Create a error handler IO task
|
Runnable |
onMessage(io.netty.channel.ChannelHandlerContext context,
Object msg)
Create a message handler IO task
|
Runnable onMessage(io.netty.channel.ChannelHandlerContext context, Object msg)
context - The connectionmsg - IO messages (attention! : no automatic release, manual release is required)default Runnable onError(io.netty.channel.ChannelHandlerContext context, Throwable throwable)
context - The connectionthrowable - Throwabledefault Runnable onClose(io.netty.channel.ChannelHandlerContext context)
context - The connectionCopyright © 2021. All rights reserved.