title: Read timeout for an NIO SocketChannel?
body: <p>What is the best way to set a timeout to close a NIO SocketChannel if there is no data is received for a certain period after the connection is established?</p>