@ Override public void stop ( ) { if ( isStarted ( ) ) { log . debugf ( "Stopping remote cache manager %x" , System . identityHashCode ( this ) ) ; synchronized ( cacheName2RemoteCache ) { for ( Map . Entry < RemoteCacheKey , RemoteCacheHolder > cache : cacheName2RemoteCache . entrySet ( ) ) { cache . getValue ( ) . remoteCache ( ) . stop ( ) ; } cacheName2RemoteCache . clear ( ) ; } listenerNotifier . stop ( ) ; counterManager . stop ( ) ; channelFactory . destroy ( ) ; } unregisterMBean ( ) ; started = false ; }
Stop the remote cache manager disconnecting all existing connections . As part of the disconnection all registered client cache listeners will be removed since client no longer can receive callbacks .