Java NIO (New IO) is an alternative IO API for Java
组件
- Channels
- Buffers
- Selectors
Channel
- FileChannel
- DatagramChannel
- SocketChannel
- ServerSocketChannel
Buffer
Selector
Selector允许单线程处理多个 Channel
Java NIO (New IO) is an alternative IO API for Java
Selector允许单线程处理多个 Channel