Lines Matching refs:timeout
742 static void testTimeout(final long timeout, final TimeUnit unit) throws Exception {
751 // this read should timeout if value is > 0
752 ch.read(dst, timeout, unit, null, new CompletionHandler<Integer,Void>() {
760 if (timeout > 0L) {
768 // after a timeout then further reading should throw unspecified runtime exception
776 throw new RuntimeException("RuntimeException expected after timeout.");
787 ch.write(genBuffer(), timeout, unit, ch,
791 ch.write(genBuffer(), timeout, unit, ch, this);
797 if (timeout > 0) {
805 // after a timeout then further writing should throw unspecified runtime exception
813 throw new RuntimeException("RuntimeException expected after timeout.");