public class TransformingHttpCommandExecutorServiceImpl extends Object implements TransformingHttpCommandExecutorService
EndpointCommand into generic
 type | Constructor and Description | 
|---|
TransformingHttpCommandExecutorServiceImpl(HttpCommandExecutorService client,
                                          ExecutorService userThreads)  | 
| Modifier and Type | Method and Description | 
|---|---|
<T,R extends HttpRequest>  | 
submit(HttpCommand command,
      com.google.common.base.Function<HttpResponse,T> responseTransformer)
Submits the command and transforms the result before requested via  
Future.get(). | 
@Inject public TransformingHttpCommandExecutorServiceImpl(HttpCommandExecutorService client, @Named(value="jclouds.user-threads") ExecutorService userThreads)
public <T,R extends HttpRequest> com.google.common.util.concurrent.ListenableFuture<T> submit(HttpCommand command, com.google.common.base.Function<HttpResponse,T> responseTransformer)
Future.get().submit in interface TransformingHttpCommandExecutorServiceT - type that is required from the value.command - holds the state of the request, including metadata such as redirect countsresponseTransformer - how to transform the response from the above commandCopyright © 2009-2013 jclouds. All Rights Reserved.