@FunctionalInterface public interface ChannelHandler
SocketChannel中读写数据| 限定符和类型 | 方法和说明 |
|---|---|
void |
handle(SocketChannel socketChannel)
处理NIO数据
|
void handle(SocketChannel socketChannel) throws Throwable
socketChannel - SocketChannelException - 可能的处理异常ThrowableCopyright © 2023. All rights reserved.