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, Map<String,String> extraHeaders, String apiKey)
          Asynchronously execute the given request with, using a different apiKey than the one associated with this connection
<T> F
executeAsync(Request<T> request, 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, execute
 

Method Detail

executeAsync

<T> F executeAsync(Request<T> request,
                   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

executeAsync

<T> F executeAsync(Request<T> request,
                   Map<String,String> extraHeaders,
                   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
extraHeaders - any extra headers to send with the request
Returns:
A future Response of Type F


Copyright © 2013. All Rights Reserved.