List/Grid Tag Archives: NIO

Ensuring the order of execution for tasks
Sometimes it is necessary to impose certain order on the tasks in a threadpool. Issue 206 of the JavaSpecialists newsletter presents one such case: we have multiple connections from ...

The Java ByteBuffer – a crash course
In my experience, java.nio.ByteBuffer is a source of confusion and subtle bugs when developers first encounter it, because it is not immediately obvious how to use it correctly. It ...

Java 7: File Filtering using NIO.2 – Part 3
Hello all. This is Part 3 of the File Filtering using NIO.2 series. For those of you who haven’t read Part 1 or Part 2, here’s a recap. NIO.2 is a new API for I/O operations ...

Java 7: File Filtering using NIO.2 – Part 2
Hello all. This is Part 2 of the File Filtering using NIO.2 series. For those of you who haven’t read Part 1, here’s a recap. NIO.2 is a new API for I/O operations included ...

Java 7: File Filtering using NIO.2 – Part 1
NIO.2 is a new API for I/O operations included in the JDK since Java 7. With this new API, you can perform the same operations performed with java.io plus a lot of great functionalities ...

I/O Demystified
With all the hype on highly scalable server design and the rage behind nodejs I have been meaning to do some focused reading on IO design patterns to which until now couldn’t ...

IO vs. NIO – Interruptions, Timeouts and Buffers
Let’s imagine a system that sometimes needs to copy a file to a few locations, but in a way where responsiveness is critical. In other words, if for some reason a file system is overloaded ...

Java Sequential IO Performance
Many applications record a series of events to file-based storage for later use. This can be anything from logging and auditing, through to keeping a transaction redo log in an ...

Java 7: Closing NIO.2 file channels without loosing data
Closing an asynchronous file channel can be very difficult. If you submitted I/O tasks to the asynchronous channel you want to be sure that the tasks are executed properly. This can ...

Java 7 #8: NIO.2 File Channels on the test bench
Another blog post about new JDK 7 features. This time I am writing about the new AnsynchronousFileChannel class. I am analyzing the new JDK 7 features in depth for a couple of weeks ...


