Package org.jclouds.rest.config
Interface InvocationConfig
- All Known Implementing Classes:
ReadAnnotationsAndProperties
@Beta
public interface InvocationConfig
Provides the ability to decouple timeouts and fallbacks from what's built-in.
-
Method Summary
Modifier and TypeMethodDescriptiongetCommandName
(Invocation invocation) command named used in logging and configuration keys.Fallback
<?> getFallback
(Invocation invocation) fallback used for commands when exceptions are encountered.com.google.common.base.Optional
<Long> If this is present, Sync method calls will block up to the specified nanos and throw aninvalid reference
UncheckedTimeoutException
-
Method Details
-
getTimeoutNanos
If this is present, Sync method calls will block up to the specified nanos and throw aninvalid reference
UncheckedTimeoutException
invalid reference
HttpCommandExecutorService#invoke
-
getCommandName
command named used in logging and configuration keys. -
getFallback
fallback used for commands when exceptions are encountered.
-