public void shutdown() { //need to close them in this specific order: try { asynchExecutor.flushCloseExecutor(); } finally { workspace.shutDownNow(); } }
public void shutdown() { //need to close them in this specific order: try { asynchExecutor.flushCloseExecutor(); } finally { workspace.shutDownNow(); } }
public void flushAndReleaseResources() { asynchExecutor.flushCloseExecutor(); workspace.getCommitPolicy().onClose(); workspace.closeIndexWriter(); }
public void flushAndReleaseResources() { asynchExecutor.flushCloseExecutor(); workspace.getCommitPolicy().onClose(); workspace.closeIndexWriter(); }