How to set Java NIO AsynchronousSocketChannel connect timeout

Viewed 3857

Looking at JDK 1.7 API. I cannot seem to be able to set a connection timeout on an AsynchonousSocketChannel. Is there anyway I can setup a connection timeout on such a channel?

Thanks.

1 Answers
Related