580581582583584585586587588589590
/* */ } /* */ }; /* 708 */ Callable timedCallable = new TimedCallable(callable, 2000L); /* */ try /* */ { /* 712 */ timedCallable.call(); /* */ } /* */ catch (Throwable t) /* */ { /* */ } /* */
707708709710711712713714715716717
Callable timedCallable = new TimedCallable(callable, CLOSE_TIMEOUT); try { timedCallable.call(); } catch (Throwable t) { //Ignore - the server might have already closed - so this is ok }
192193194195196197198199200201202
for( int i=0; i < CONSUMER_COUNT; i++ ) { new Thread("Consumer:"+i) { public void run() { try { consumer.call(); } catch (Throwable e) { workerError[0] = e; } } }.start();