private CachedReferenceListenerSupport<V> getDelegate() { if (lazyListenerSupport.isInitialized()) { return lazyListenerSupport.get(); } else { return CachedReferenceListenerSupport.EMPTY; } }
private CacheEntryListenerSupport<K, V> getDelegate() { if (lazyListenerSupport.isInitialized()) { return lazyListenerSupport.get(); } else { return CacheEntryListenerSupport.EMPTY; } }
@Override // we need to get rid of the thread pool in the ExecutorService we created, otherwise we leak threads when new versions of the plugin are // installed, and when the plugin is disabled and re-enabled https://jira.atlassian.com/browse/HC-13981 public void destroy() throws Exception { if (client.isInitialized()) { client.get().getExecutorService().shutdown(); } } }