public void saveLater ( ) { if ( executor . isShutdown ( ) || savePending . getAndSet ( true ) ) return ; // Already pending. executor . schedule ( saver , delay , delayTimeUnit ) ; }
Queues up a save in the background . Useful for not very important wallet changes .