org.jclouds.http
Interface TransformingHttpCommandExecutorService

All Known Implementing Classes:
TransformingHttpCommandExecutorServiceImpl

public interface TransformingHttpCommandExecutorService

Executor which will invoke and transform the response of an EndpointCommand into generic type .

Author:
Adrian Cole

Method Summary
<T,R extends HttpRequest>
com.google.common.util.concurrent.ListenableFuture<T>
submit(HttpCommand command, com.google.common.base.Function<HttpResponse,T> responseTransformer)
          Submits the command and transforms the result before requested via Future.get().
 

Method Detail

submit

<T,R extends HttpRequest> com.google.common.util.concurrent.ListenableFuture<T> submit(HttpCommand command,
                                                                                       com.google.common.base.Function<HttpResponse,T> responseTransformer)
Submits the command and transforms the result before requested via Future.get().

Type Parameters:
T - type that is required from the value.
Parameters:
command - holds the state of the request, including metadata such as redirect counts
responseTransformer - how to transform the response from the above command
Returns:
value of the intended response.


Copyright © 2009-2012 jclouds. All Rights Reserved.