/** * Invokes {@code shutdown} when this executor is no longer * referenced and it has no threads. */ protected void finalize() { shutdown(); }
/** * Invokes {@code shutdown} when this executor is no longer * referenced and it has no threads. */ protected void finalize() { shutdown(); }
/** * Invokes {@code shutdown} when this executor is no longer * referenced and it has no threads. */ protected void finalize() { shutdown(); }
/** * Initiates an orderly shutdown in which previously submitted * tasks are executed, but no new tasks will be accepted. If the * {@code ExecuteExistingDelayedTasksAfterShutdownPolicy} has * been set {@code false}, existing delayed tasks whose delays * have not yet elapsed are cancelled. And unless the * {@code ContinueExistingPeriodicTasksAfterShutdownPolicy} has * been set {@code true}, future executions of existing periodic * tasks will be cancelled. * * @throws SecurityException {@inheritDoc} */ public void shutdown() { super.shutdown(); }
/** * Initiates an orderly shutdown in which previously submitted * tasks are executed, but no new tasks will be accepted. If the * {@code ExecuteExistingDelayedTasksAfterShutdownPolicy} has * been set {@code false}, existing delayed tasks whose delays * have not yet elapsed are cancelled. And unless the * {@code ContinueExistingPeriodicTasksAfterShutdownPolicy} has * been set {@code true}, future executions of existing periodic * tasks will be cancelled. * * @throws SecurityException {@inheritDoc} */ public void shutdown() { super.shutdown(); }
/** * Initiates an orderly shutdown in which previously submitted * tasks are executed, but no new tasks will be accepted. If the * {@code ExecuteExistingDelayedTasksAfterShutdownPolicy} has * been set {@code false}, existing delayed tasks whose delays * have not yet elapsed are cancelled. And unless the * {@code ContinueExistingPeriodicTasksAfterShutdownPolicy} has * been set {@code true}, future executions of existing periodic * tasks will be cancelled. * * @throws SecurityException {@inheritDoc} */ public void shutdown() { super.shutdown(); }
public void dispose() throws IllegalStateException { writeLockAll(); try { synchronized (this) { // checkStatus(); // memoryStore.stopTimeMonitoring(); // memoryStore.dispose(); // registeredEventListeners.dispose(); // // changeStatus(Status.STATUS_SHUTDOWN); checkStatusNotDisposed(); if (executorService != null) { executorService.shutdown(); } disposeRegisteredCacheExtensions(); registeredEventListeners.dispose(); if (memoryStore != null) { memoryStore.stopTimeMonitoring(); memoryStore.dispose(); } memoryStore = null; changeStatus(Status.STATUS_SHUTDOWN); } } finally { writeUnLockAll(); memoryStore = null; } }
public void dispose() throws IllegalStateException { writeLockAll(); try { synchronized (this) { // checkStatus(); // memoryStore.stopTimeMonitoring(); // memoryStore.dispose(); // registeredEventListeners.dispose(); // // changeStatus(Status.STATUS_SHUTDOWN); checkStatusNotDisposed(); if (executorService != null) { executorService.shutdown(); } disposeRegisteredCacheExtensions(); registeredEventListeners.dispose(); if (memoryStore != null) { memoryStore.stopTimeMonitoring(); memoryStore.dispose(); } memoryStore = null; changeStatus(Status.STATUS_SHUTDOWN); } } finally { writeUnLockAll(); memoryStore = null; } }