@Override public void close() throws IOException { closeableRegistry.close(); }
@Override public void close() throws IOException { closeableRegistry.close(); }
@Override public final void cancel() throws Exception { isRunning = false; canceled = true; // the "cancel task" call must come first, but the cancelables must be // closed no matter what try { cancelTask(); } finally { cancelables.close(); } }
/** * The finalize method shuts down the timer. This is a fail-safe shutdown, in case the original * shutdown method was never called. * * <p>This should not be relied upon! It will cause shutdown to happen much later than if manual * shutdown is attempted, and cause threads to linger for longer than needed. */ @Override protected void finalize() throws Throwable { super.finalize(); if (timerService != null) { if (!timerService.isTerminated()) { LOG.info("Timer service is shutting down."); timerService.shutdownService(); } } cancelables.close(); }
closeableRegistry.close(); unblock.trigger(); restoreThread.join();
cancelables.close(); shutdownAsyncThreads();
closableRegistry.close(); isClosed = true;
@Override public void close() throws IOException { cancelStreamRegistry.close(); }
@Override public void close() throws IOException { closeableRegistry.close(); }
@Override public void close() throws IOException { closeableRegistry.close(); }
@Override public void close() throws IOException { closeableRegistry.close(); }
@Override public void close() throws IOException { cancelStreamRegistry.close(); }
@Override public void close() throws IOException { closeStreamOnCancelRegistry.close(); }
@Override public void close() throws IOException { closeableRegistry.close(); }
@Override public void close() throws IOException { cancelStreamRegistry.close(); }
private void closeSnapshotIO() { try { snapshotCloseableRegistry.close(); } catch (IOException e) { LOG.warn("Could not properly close incremental snapshot streams.", e); } } }
void stop() { try { closeableRegistry.close(); } catch (IOException e) { LOG.warn("Could not properly close io streams.", e); } }
private void closeSnapshotIO() { try { snapshotCloseableRegistry.close(); } catch (IOException e) { LOG.warn("Could not properly close incremental snapshot streams.", e); } } }
@Override public final void cancel() throws Exception { isRunning = false; canceled = true; // the "cancel task" call must come first, but the cancelables must be // closed no matter what try { cancelTask(); } finally { cancelables.close(); } }
@Override public final void cancel() throws Exception { isRunning = false; canceled = true; // the "cancel task" call must come first, but the cancelables must be // closed no matter what try { cancelTask(); } finally { cancelables.close(); } }