public void waitForCompletion ( ) throws AmazonClientException , AmazonServiceException , InterruptedException { try { Object result = null ; while ( ! monitor . isDone ( ) || result == null ) { Future < ? > f = monitor . getFuture ( ) ; result = f . get ( ) ; } } catch ( ExecutionException e ) { rethrowExecutionException ( e ) ; } }
Waits for this transfer to complete . This is a blocking call ; the current thread is suspended until this transfer completes .