org.jclouds.fallbacks
Interface PropagateIfRetryAfter

All Superinterfaces:
com.google.common.util.concurrent.FutureFallback<Object>
All Known Implementing Classes:
HeaderToRetryAfterException

public interface PropagateIfRetryAfter
extends com.google.common.util.concurrent.FutureFallback<Object>

propagates as RetryAfterException if a Throwable contains information such as a retry offset.

Author:
Adrian Cole

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Object> create(Throwable t)
          if input is not of type HttpResponseException, this method propagates.
 

Method Detail

create

com.google.common.util.concurrent.ListenableFuture<Object> create(Throwable t)
if input is not of type HttpResponseException, this method propagates. Otherwise, immediate future of null, if didn't coerce to RetryAfterException

Specified by:
create in interface com.google.common.util.concurrent.FutureFallback<Object>


Copyright © 2009-2013 jclouds. All Rights Reserved.