/** * @return a string identifying this latch, as well as its state */ @Override public String toString() { return "(Stoppable) " + latch.toString(); } }
/** * @return a string identifying this latch, as well as its state */ @Override public String toString() { return "(Stoppable) " + latch.toString(); } }
@Override public String toString() { return latch.toString(); } }
/** * @return a string identifying this latch, as well as its state */ @Override public String toString() { return "(Stoppable) " + latch.toString(); } }
@Override public String toString() { return delegate.get().toString(); }
return latch.toString();
@Test public void testSchedulingAndInputAddition() throws Exception { this.streamRegexMonitor.start(); try { if (!callbackCount.await(1, TimeUnit.SECONDS)) { throw new Exception( "Did not see " + expectedNumberOfCallbacks + " callbacks after waiting. " + callbackCount.toString()); } } finally { System.out.println("CallbackCount is " + callbackCount.getCount()); this.streamRegexMonitor.stop(); } }
fail("Couldn't complete queue.add, expected " + NUMBER_OF_MESSAGES + ", still missing " + fakeQueue.expectedElements.toString());