org.jclouds.http
Class HttpCommandRendezvous<T,R extends HttpRequest>

java.lang.Object
  extended by org.jclouds.http.HttpCommandRendezvous<T,R>

public class HttpCommandRendezvous<T,R extends HttpRequest>
extends Object

Used for passing objects for response processing

Author:
Adrian Cole

Constructor Summary
HttpCommandRendezvous(HttpCommand command, SynchronousQueue rendezvous, Future<T> future)
           
 
Method Summary
 void cancel()
           
 HttpCommand getCommand()
           
 Future<T> getFuture()
           
 void setException(Exception exception)
           
 void setResponse(HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpCommandRendezvous

public HttpCommandRendezvous(HttpCommand command,
                             SynchronousQueue rendezvous,
                             Future<T> future)
Method Detail

setResponse

public void setResponse(HttpResponse response)
                 throws InterruptedException
Throws:
InterruptedException

setException

public void setException(Exception exception)
                  throws InterruptedException
Throws:
InterruptedException

cancel

public void cancel()

getCommand

public HttpCommand getCommand()

getFuture

public Future<T> getFuture()


Copyright © 2009-2011 jclouds. All Rights Reserved.