@Override public void stop(){
  if (stopping.compareAndSet(false,true)) {
    if (log.isDebugEnabled())     log.debug("Stopping write-behind store for cache '" + cacheName + '\'');
    wakeUp();
    boolean graceful=true;
    for (    GridWorker worker : flushThreads)     graceful&=U.join(worker,log);
    if (!graceful)     log.warning("Shutdown was aborted");
  }
}

@ Override public void stop ( ) { if ( stopping . compareAndSet ( false , true ) ) { if ( log . isDebugEnabled ( ) ) log . debug ( "Stopping write-behind store for cache '" + cacheName + '\'' ) ; wakeUp ( ) ; boolean graceful = true ; for ( GridWorker worker : flushThreads ) graceful &= U . join ( worker , log ) ; if ( ! graceful ) log . warning ( "Shutdown was aborted" ) ; } }
performs shutdown logic for store . no put , get and remove requests will be processed after this method is called .
