I was hoping to get a general 'New NIO' overview, but Jean-François concentrated most of his talk discussing low-level Asynchronous IO usage patterns in Grizzly using New-NIO:
- waiting for Java 7
- 'Selector' and Notify principle
- 'CompletionHandler' that uses a 'Future' to listen to the socket without wasting threads
- thread pools: fixed, cached thread pools built-in to the kernel (but: risk of blocking the kernel!)
Other New NIO features in java.nio.file:
- FileSystem
- FileRef for having native symbolic links in Java
- Path
- FileStore
references:
Thanks for posting this
ReplyDelete