org.jclouds.rest.internal
Class AsyncRestClientProxy<T>

java.lang.Object
  extended by org.jclouds.rest.internal.AsyncRestClientProxy<T>
All Implemented Interfaces:
InvocationHandler

@Singleton
public class AsyncRestClientProxy<T>
extends Object
implements InvocationHandler


Nested Class Summary
static interface AsyncRestClientProxy.Factory
           
 
Field Summary
protected  Logger logger
           
protected  long requestTimeoutMilliseconds
          maximum duration of an unwrapped http Request
 
Constructor Summary
AsyncRestClientProxy(com.google.inject.Injector injector, AsyncRestClientProxy.Factory factory, RestAnnotationProcessor<T> util, com.google.inject.TypeLiteral<T> typeLiteral, com.google.common.cache.Cache<ClassMethodArgs,Object> delegateMap)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 Object invoke(Object o, Method method, Object[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

requestTimeoutMilliseconds

@Inject(optional=true)
@Named(value="jclouds.request-timeout")
protected long requestTimeoutMilliseconds
maximum duration of an unwrapped http Request


logger

protected Logger logger
Constructor Detail

AsyncRestClientProxy

@Inject
public AsyncRestClientProxy(com.google.inject.Injector injector,
                                   AsyncRestClientProxy.Factory factory,
                                   RestAnnotationProcessor<T> util,
                                   com.google.inject.TypeLiteral<T> typeLiteral,
                                   @Named(value="async")
                                   com.google.common.cache.Cache<ClassMethodArgs,Object> delegateMap)
Method Detail

invoke

public Object invoke(Object o,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.