org.jclouds.rest.config
Class ReadAnnotationsAndProperties

java.lang.Object
  extended by org.jclouds.rest.config.ReadAnnotationsAndProperties
All Implemented Interfaces:
InvocationConfig

@Beta
@Singleton
public class ReadAnnotationsAndProperties
extends Object
implements InvocationConfig


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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTimeoutNanos

public com.google.common.base.Optional<Long> getTimeoutNanos(Invocation in)
Description copied from interface: InvocationConfig
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.

Specified by:
getTimeoutNanos in interface InvocationConfig

getCommandName

public String getCommandName(Invocation invocation)
Description copied from interface: InvocationConfig
command named used in logging and configuration keys.

Specified by:
getCommandName in interface InvocationConfig

getFallback

public Fallback<?> getFallback(Invocation invocation)
Description copied from interface: InvocationConfig
fallback used for Sync or Async commands.

Specified by:
getFallback in interface InvocationConfig


Copyright © 2009-2013 jclouds. All Rights Reserved.