org.jclouds.http
Interface HttpCommandExecutorService

All Known Implementing Classes:
BaseHttpCommandExecutorService, JavaUrlHttpCommandExecutorService

public interface HttpCommandExecutorService

Capable of invoking http commands.

Author:
Adrian Cole

Method Summary
 HttpResponse invoke(HttpCommand command)
          Returns a HttpResponse from the server which responded to the command.
 com.google.common.util.concurrent.ListenableFuture<HttpResponse> submit(HttpCommand command)
          Returns a potentially deferred HttpResponse from a server responding to the command.
 

Method Detail

submit

com.google.common.util.concurrent.ListenableFuture<HttpResponse> submit(HttpCommand command)
Returns a potentially deferred HttpResponse from a server responding to the command. The output ListenableFuture need not be done, making HttpCommandExecutorService suitable for asynchronous derivations.


invoke

HttpResponse invoke(HttpCommand command)
Returns a HttpResponse from the server which responded to the command.



Copyright © 2009-2013 jclouds. All Rights Reserved.