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