196197198199200201202203204205206
catch (Exception e) { e.printStackTrace(); } synchronized (success) { success.set(true); success.notify(); } } }); t.start(); queue.close();
142143144145146147148149150151152
197198199200201202203204205206207
154155156157158159160161162163164
93949596979899100101102103
assertTrue(b[i] == TEST_DATA); } } complete.set(true); synchronized(complete){ complete.notify(); } } catch (Exception ex) { ex.printStackTrace(); }