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.

Author:
Adrian Cole

Method Summary
 String getCommandName(Invocation invocation)
          command named used in logging and configuration keys.
 Fallback<?> getFallback(Invocation invocation)
          fallback used for Sync or Async commands.
 com.google.common.base.Optional<Long> getTimeoutNanos(Invocation in)
          If this is present, Sync method calls will block up to the specified nanos and throw an UncheckedTimeoutException.
 

Method Detail

getTimeoutNanos

com.google.common.base.Optional<Long> getTimeoutNanos(Invocation in)
If this is present, Sync method calls will block up to the specified nanos and throw an UncheckedTimeoutException. If this is not present, Sync method calls will be invoked directly, typically through HttpCommandExecutorService#invoke.


getCommandName

String getCommandName(Invocation invocation)
command named used in logging and configuration keys.


getFallback

Fallback<?> getFallback(Invocation invocation)
fallback used for Sync or Async commands.



Copyright © 2009-2013 jclouds. All Rights Reserved.