@Override public void run() { if (!sleep()) { LOG.warn( "Interrupted while sleeping for expected sleep time " + sleepTime + " ms"); } //TODO maybe we should consider switching to a listenableFuture for the actual callable and // then handling the results/errors as callbacks. That way we can decrement outstanding tasks // even if we get interrupted here, but for now, we still need to run so we decrement the // outstanding tasks this.runnable.run(); }
@Override public void run() { if (!sleep()) { LOG.warn( "Interrupted while sleeping for expected sleep time " + sleepTime + " ms"); } //TODO maybe we should consider switching to a listenableFuture for the actual callable and // then handling the results/errors as callbacks. That way we can decrement outstanding tasks // even if we get interrupted here, but for now, we still need to run so we decrement the // outstanding tasks this.runnable.run(); }
@Override public void run() { if (!sleep()) { LOG.warn( "Interrupted while sleeping for expected sleep time " + sleepTime + " ms"); } //TODO maybe we should consider switching to a listenableFuture for the actual callable and // then handling the results/errors as callbacks. That way we can decrement outstanding tasks // even if we get interrupted here, but for now, we still need to run so we decrement the // outstanding tasks this.runnable.run(); }
@Override public void run() { if (!sleep()) { LOG.warn( "Interrupted while sleeping for expected sleep time " + sleepTime + " ms"); } //TODO maybe we should consider switching to a listenableFuture for the actual callable and // then handling the results/errors as callbacks. That way we can decrement outstanding tasks // even if we get interrupted here, but for now, we still need to run so we decrement the // outstanding tasks this.runnable.run(); }