private void waitForFuture() { if (!executor.flush(10, TimeUnit.SECONDS)) { ActiveMQServerLogger.LOGGER.timedOutStoppingPagingCursor(executor); } }
@Override public void flushExecutors() { if (!executor.flush(10, TimeUnit.SECONDS)) { ActiveMQServerLogger.LOGGER.timedOutFlushingExecutorsPagingCursor(this); } }
private boolean internalFlushExecutor(long timeout, boolean log) { if (!getExecutor().flush(timeout, TimeUnit.MILLISECONDS)) { if (log) { ActiveMQServerLogger.LOGGER.queueBusy(this.name.toString(), timeout); } return false; } else { return true; } }