@Override public void close() { if (singleton == null) { return; } super.close(); // dispose singleton session only when manager is closing try { removeRuntimeFromTaskService(); } catch (UnsupportedOperationException e) { logger.debug("Exception while closing task service, was it initialized? {}", e.getMessage()); } if (this.singleton instanceof Disposable) { ((Disposable) this.singleton).dispose(); } factory.close(); this.singleton = null; }
return; ((Disposable) runtime).dispose();
return; ((Disposable) runtime).dispose();
@Override public void disposeRuntimeEngine(RuntimeEngine runtime) { if (isClosed()) { throw new IllegalStateException("Runtime manager " + identifier + " is already closed"); } removeLocalRuntime(runtime); if (runtime instanceof Disposable && environment.usePersistence()) { ((Disposable) runtime).dispose(); } }
@Override public void close() { if (singleton == null) { return; } super.close(); // dispose singleton session only when manager is closing try { removeRuntimeFromTaskService(); } catch (UnsupportedOperationException e) { logger.debug("Exception while closing task service, was it initialized? {}", e.getMessage()); } if (this.singleton instanceof Disposable) { ((Disposable) this.singleton).dispose(); } factory.close(); this.singleton = null; }
return; ((Disposable) runtime).dispose();
return; ((Disposable) runtime).dispose();