protected synchronized boolean isBackgroundInvalidationInProgress ( ) { boolean cleanupThreadRunning = false ; if ( this . cod . diskCleanupThread != null ) { synchronized ( cod . diskCleanupThread . dcMonitor ) { cleanupThreadRunning = this . cod . diskCleanupThread . currentThread != null ; } } boolean garbageCollectorThreadRunning = false ; if ( this . cod . garbageCollectionThread != null ) { synchronized ( cod . garbageCollectionThread . gcMonitor ) { garbageCollectorThreadRunning = this . cod . garbageCollectionThread . currentThread != null ; } } return ( cleanupThreadRunning || garbageCollectorThreadRunning ) ? true : false ; }
Call this method to check the state of LPBT in Progress .