mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -22,7 +22,7 @@ import cn.hutool.socket.SocketRuntimeException;
|
||||
*/
|
||||
public class AioClient implements Closeable{
|
||||
|
||||
private AioSession session;
|
||||
private final AioSession session;
|
||||
|
||||
/**
|
||||
* 构造
|
||||
|
@@ -23,12 +23,12 @@ import cn.hutool.socket.SocketConfig;
|
||||
*/
|
||||
public class AioServer implements Closeable {
|
||||
private static final Log log = LogFactory.get();
|
||||
private static AcceptHandler ACCEPT_HANDLER = new AcceptHandler();
|
||||
private static final AcceptHandler ACCEPT_HANDLER = new AcceptHandler();
|
||||
|
||||
private AsynchronousChannelGroup group;
|
||||
private AsynchronousServerSocketChannel channel;
|
||||
protected IoAction<ByteBuffer> ioAction;
|
||||
protected SocketConfig config;
|
||||
protected final SocketConfig config;
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -25,8 +25,8 @@ public class AioSession implements Closeable{
|
||||
|
||||
private static final ReadHandler READ_HANDLER = new ReadHandler();
|
||||
|
||||
private AsynchronousSocketChannel channel;
|
||||
private IoAction<ByteBuffer> ioAction;
|
||||
private final AsynchronousSocketChannel channel;
|
||||
private final IoAction<ByteBuffer> ioAction;
|
||||
private ByteBuffer readBuffer;
|
||||
private ByteBuffer writeBuffer;
|
||||
/** 读取超时时长,小于等于0表示默认 */
|
||||
|
Reference in New Issue
Block a user