private void handleInterruptedException ( String message , InterruptedException cause ) { Thread . currentThread ( ) . interrupt ( ) ; throw new AbortedException ( message , cause ) ; }
If we are interrupted while waiting for a lock we just restore the interrupt status and throw an AmazonClientException back to the caller .