@ Invalidate public void stop ( ) { for ( Map . Entry < ServiceRegistration , ExecutorService > entry : instances . entrySet ( ) ) { entry . getKey ( ) . unregister ( ) ; entry . getValue ( ) . shutdownNow ( ) ; } instances . clear ( ) ; }
Shutdown all created executors .