public class CompletionAcceptHandler extends Object implements CompletionHandler<ServerSocketChannel,QuickNioServer>
| Constructor and Description |
|---|
CompletionAcceptHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
completed(ServerSocketChannel serverSocketChannel,
QuickNioServer quickNioServer) |
void |
failed(Throwable exc,
QuickNioServer quickNioServer) |
static void |
registerChannel(Selector selector,
SelectableChannel channel,
int ops)
注册通道的指定操作到指定Selector上
|
public static void registerChannel(Selector selector, SelectableChannel channel, int ops)
selector - Selectorchannel - 通道ops - 注册的通道监听(操作)类型public void completed(ServerSocketChannel serverSocketChannel, QuickNioServer quickNioServer)
completed in interface CompletionHandler<ServerSocketChannel,QuickNioServer>public void failed(Throwable exc, QuickNioServer quickNioServer)
failed in interface CompletionHandler<ServerSocketChannel,QuickNioServer>Copyright © 2021. All rights reserved.