public final class AsyncHttpTransport extends Object implements Transport<org.asynchttpclient.Response,org.asynchttpclient.Request>
AsyncHttpClient
Constructor and Description |
---|
AsyncHttpTransport(org.asynchttpclient.AsyncHttpClientConfig transportConfig,
HttpOptions options)
Constructor for AsyncHttpTransport.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Options |
getOptions()
getOptions.
|
CompletableFuture<org.asynchttpclient.Response> |
send(org.asynchttpclient.Request data)
send.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, get, getOrDefault, getOrDefault, lock, set, unlock
public AsyncHttpTransport(org.asynchttpclient.AsyncHttpClientConfig transportConfig, HttpOptions options)
Constructor for AsyncHttpTransport.
transportConfig
- a AsyncHttpClientConfig
objectpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public CompletableFuture<org.asynchttpclient.Response> send(org.asynchttpclient.Request data)
send.
send
in interface Transport<org.asynchttpclient.Response,org.asynchttpclient.Request>
data
- a R objectCompletableFuture
objectpublic Options getOptions()
getOptions.
getOptions
in interface ConfigurationSupport
Options
objectCopyright © 2016–2024. All rights reserved.