public void interrupt ( ) { interrupted . set ( true ) ; ExecutorService pool = ConcurrencyTools . getThreadPool ( ) ; pool . shutdownNow ( ) ; try { DomainProvider domainProvider = DomainProviderFactory . getDomainProvider ( ) ; if ( domainProvider instanceof RemoteDomainProvider ) { RemoteDomainProvider remote = ( RemoteDomainProvider ) domainProvider ; remote . flushCache ( ) ; } } catch ( IOException e ) { // If errors occur, the cache should be empty anyways } }
stops what is currently happening and does not continue