public synchronized void stop(final StopContext context) { try { context.execute(new Runnable() { @Override public void run() { connectionManagerRegistry.removeLdapConnectionManagerService(name); context.complete(); } }); } finally { context.asynchronous(); } }
public synchronized void stop(final StopContext context) { try { context.execute(new Runnable() { @Override public void run() { connectionManagerRegistry.removeLdapConnectionManagerService(name); context.complete(); } }); } finally { context.asynchronous(); } }
@Override public void stop(final StopContext context) { try { context.execute(new Runnable() { @Override public void run() { try { cacheImplementation.clearAll(); cacheImplementation = null; if (executorService != null) { // FIXME context.execute() should not be used for blocking tasks. Inject a scheduled executor // and get rid of this executorService.shutdown(); executorService = null; } } finally { context.complete(); } } }); } finally { context.asynchronous(); } }
@Override public void stop(final StopContext context) { try { context.execute(new Runnable() { @Override public void run() { try { cacheImplementation.clearAll(); cacheImplementation = null; if (executorService != null) { // FIXME context.execute() should not be used for blocking tasks. Inject a scheduled executor // and get rid of this executorService.shutdown(); executorService = null; } } finally { context.complete(); } } }); } finally { context.asynchronous(); } }