public synchronized void removeExpired ( ) { final List < String > removeLockList = new ArrayList < String > ( ) ; for ( LockData lock : getLockList ( ) ) { if ( ! lock . isSessionScoped ( ) && lock . getTimeToDeath ( ) < 0 ) { removeLockList . add ( lock . getNodeIdentifier ( ) ) ; } } Collections . sort ( removeLockList ) ; for ( String rLock : removeLockList ) { removeLock ( rLock ) ; } }
Remove expired locks . Used from LockRemover .