org.jclouds.concurrent.internal
Class SyncProxy
java.lang.Object
org.jclouds.concurrent.internal.SyncProxy
- All Implemented Interfaces:
- InvocationHandler
public class SyncProxy
- extends Object
- implements InvocationHandler
Generates RESTful clients from appropriately annotated interfaces.
- Author:
- Adrian Cole
proxy
public static <T> T proxy(Class<T> clazz,
Object async,
@Named(value="sync")
com.google.common.cache.Cache<ClassMethodArgs,Object> delegateMap,
Map<Class<?>,Class<?>> sync2Async,
Map<String,Long> timeouts)
throws IllegalArgumentException,
SecurityException,
NoSuchMethodException
- Throws:
IllegalArgumentException
SecurityException
NoSuchMethodException
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.