I want to use a SocketChannel and to have a timeout for its read/write methods. I\'ve tried to set a timeout for the Socket that owns my SocketChannel
SocketChannel
You could also consider making your channel non-blockable and just using System.currentTimeMillis().