com.heroku.api.connection
Interface AsyncConnection<F>

Type Parameters:
F - the type of 'Future' that this connection will return
All Superinterfaces:
Connection

public interface AsyncConnection<F>
extends Connection

Asynchronous version of Connection


Method Summary
<T> F
executeAsync(Request<T> request, java.lang.String apiKey)
          Asynchronously execute the given request with, using a different apiKey than the one associated with this connection
 
Methods inherited from interface com.heroku.api.connection.Connection
close, execute
 

Method Detail

executeAsync

<T> F executeAsync(Request<T> request,
                   java.lang.String apiKey)
Asynchronously execute the given request with, using a different apiKey than the one associated with this connection

Type Parameters:
T - The Type of the Response when parsed by the request, returned by the Future
Parameters:
request - The request to execute
Returns:
A future Response of Type F


Copyright © 2012. All Rights Reserved.