摘要: 异步channel API主要引入三个异步类: AsynchronousFileChannel,AsynchronousSocketChannel, and AsynchronousServerSocketChannel.AsynchronousFileChannel跟FileChannel区别:不保存全局的position和offset,可以制定访问位置,也支持并发访问文件不同。AsynchronousServerSocketChannelAsynchronousSocketChannel:能够绑定到一个制定线程池的组中,这个线程池能够用future或者CompletionHandler来对 阅读全文
posted @ 2012-12-31 15:10 zhwj184 阅读(431) 评论(0) 推荐(0) 编辑