@Stop
 @SuppressWarnings("unused")
 private void stop() {
   if (clustered) {
     notifier.removeListener(cleanupService);
     cleanupService.stop();
     notifier.removeListener(this);
     currentTopologyId = CACHE_STOPPED_TOPOLOGY_ID; // indicate that the cache has stopped
   }
   shutDownGracefully();
 }
Esempio n. 2
0
 @Stop
 private void stop() {
   if (clustered) {
     notifier.removeListener(cleanupService);
     cm.removeListener(cleanupService);
     cleanupService.stop();
     cm.removeListener(this);
     currentViewId = CACHE_STOPPED_VIEW_ID; // indicate that the cache has stopped
   }
   shutDownGracefully();
 }
  @Stop
  @SuppressWarnings("unused")
  private void stop() {
    cacheManagerNotifier.removeListener(this);
    if (executorService != null) executorService.shutdownNow();

    if (clustered) {
      notifier.removeListener(this);
      currentTopologyId = CACHE_STOPPED_TOPOLOGY_ID; // indicate that the cache has stopped
    }
    shutDownGracefully();
  }
Esempio n. 4
0
 public void removeListener(Object listener) {
   notifier.removeListener(listener);
 }