private void handleReopenForStorageException ( final StorageException exs ) throws StorageException { reopens ++ ; if ( reopens > maxReopens ) { throw new StorageException ( exs . getCode ( ) , "All " + maxReopens + " reopens failed. Waited a total of " + totalWaitTime + " ms between attempts" , exs ) ; } sleepForAttempt ( reopens ) ; }
Records a reopen attempt for the given StorageException sleeping for an amount of time dependent on the attempt number . Throws a StorageException if we ve exhausted all reopens .