/** * Waits until all enqueued operations are complete. If the thread gets interrupted, any * {@link InterruptedException} will be rethrown as a {@link DaoException}. */ public void waitForCompletion() { executor.waitForCompletion(); }
/** * Waits until all enqueued operations are complete, but at most the given amount of milliseconds. If the thread * gets interrupted, any {@link InterruptedException} will be rethrown as a {@link DaoException}. * * @return true if operations completed in the given time frame. */ public boolean waitForCompletion(int maxMillis) { return executor.waitForCompletion(maxMillis); }
/** * Waits until all enqueued operations are complete, but at most the given amount of milliseconds. If the thread * gets interrupted, any {@link InterruptedException} will be rethrown as a {@link DaoException}. * * @return true if operations completed in the given time frame. */ public boolean waitForCompletion(int maxMillis) { return executor.waitForCompletion(maxMillis); }
/** * Waits until all enqueued operations are complete. If the thread gets interrupted, any * {@link InterruptedException} will be rethrown as a {@link DaoException}. */ public void waitForCompletion() { executor.waitForCompletion(); }