T
- The StorageRequest classS
- The result of the StorageRequestpublic class OperationWithRetry<T extends com.google.api.services.storage.StorageRequest<S>,S> extends Object
Constructor and Description |
---|
OperationWithRetry(com.google.api.client.util.Sleeper sleeper,
com.google.api.client.util.BackOff backOff,
T request,
com.google.common.base.Predicate<IOException> shouldRetryPredicate) |
public OperationWithRetry(com.google.api.client.util.Sleeper sleeper, com.google.api.client.util.BackOff backOff, T request, com.google.common.base.Predicate<IOException> shouldRetryPredicate)
public S execute() throws IOException
IOException
- If we exhaust our backOff retries or the operation throws an
exception we should not retry. The exception will be as was thrown by the StorageRequest's
execute method.Copyright © 2015. All rights reserved.