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() . |
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 countsresponseTransformer
- how to transform the response from the above command
- Returns:
- value of the intended response.
Copyright © 2009-2012 jclouds. All Rights Reserved.