@Singleton public class AsyncGaeHttpCommandExecutorService extends Object implements HttpCommandExecutorService
HttpCommandExecutorService
using their fetchAsync callModifier 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
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)
HttpCommandExecutorService
HttpResponse
. and invokes it on the endpoint, returning a futuresubmit
in interface HttpCommandExecutorService
command
- that generates requestsFuture
containing the response from the endpoint
Copyright © 2009-2012 jclouds. All Rights Reserved.