com.heroku.api.connection
Class JerseyClientAsyncConnection

java.lang.Object
  extended by com.heroku.api.connection.JerseyClientAsyncConnection
All Implemented Interfaces:
AsyncConnection<Future<?>>, Connection

public class JerseyClientAsyncConnection
extends Object
implements AsyncConnection<Future<?>>


Nested Class Summary
static class JerseyClientAsyncConnection.Provider
           
 
Constructor Summary
JerseyClientAsyncConnection()
           
JerseyClientAsyncConnection(com.sun.jersey.api.client.Client client)
           
 
Method Summary
 void close()
           
<T> T
execute(Request<T> request, String key)
           
<T> Future<T>
executeAsync(Request<T> request, String apiKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JerseyClientAsyncConnection

public JerseyClientAsyncConnection()

JerseyClientAsyncConnection

public JerseyClientAsyncConnection(com.sun.jersey.api.client.Client client)
Method Detail

executeAsync

public <T> Future<T> executeAsync(Request<T> request,
                                  String apiKey)
Specified by:
executeAsync in interface AsyncConnection<Future<?>>

execute

public <T> T execute(Request<T> request,
                     String key)
Specified by:
execute in interface Connection

close

public void close()
Specified by:
close in interface Connection


Copyright © 2012. All Rights Reserved.