@Singleton public class AsyncGaeHttpCommandExecutorService extends Object implements HttpCommandExecutorService
HttpCommandExecutorService using their fetchAsync call| Modifier and Type | Field and Description |
|---|---|
protected Logger |
headerLog |
protected Logger |
logger |
protected HttpUtils |
utils |
protected HttpWire |
wire |
| Constructor and Description |
|---|
AsyncGaeHttpCommandExecutorService(ExecutorService service,
com.google.appengine.api.urlfetch.URLFetchService urlFetchService,
ConvertToGaeRequest convertToGaeRequest,
ConvertToJcloudsResponse convertToJcloudsResponse,
DelegatingRetryHandler retryHandler,
IOExceptionRetryHandler ioRetryHandler,
DelegatingErrorHandler errorHandler,
HttpUtils utils,
HttpWire wire) |
| Modifier and Type | Method and Description |
|---|---|
com.google.appengine.api.urlfetch.HTTPRequest |
filterLogAndConvertRe(HttpRequest request) |
com.google.common.util.concurrent.ListenableFuture<HttpResponse> |
submit(HttpCommand command)
Asks the command to build a request relevant for an endpoint that produces responses of
generic type
HttpResponse. |
protected Logger logger
@Named(value="jclouds.headers") protected Logger headerLog
protected final HttpWire wire
protected final HttpUtils utils
@Inject
public AsyncGaeHttpCommandExecutorService(@Named(value="jclouds.user-threads")
ExecutorService service,
com.google.appengine.api.urlfetch.URLFetchService urlFetchService,
ConvertToGaeRequest convertToGaeRequest,
ConvertToJcloudsResponse convertToJcloudsResponse,
DelegatingRetryHandler retryHandler,
IOExceptionRetryHandler ioRetryHandler,
DelegatingErrorHandler errorHandler,
HttpUtils utils,
HttpWire wire)
public com.google.appengine.api.urlfetch.HTTPRequest filterLogAndConvertRe(HttpRequest request)
public com.google.common.util.concurrent.ListenableFuture<HttpResponse> submit(HttpCommand command)
HttpCommandExecutorServiceHttpResponse. and invokes it on the endpoint, returning a futuresubmit in interface HttpCommandExecutorServicecommand - that generates requestsFuture containing the response from the endpointCopyright © 2009-2013 jclouds. All Rights Reserved.