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, waitget, get, getOrDefault, getOrDefault, lock, set, unlockpublic AsyncHttpTransport(org.asynchttpclient.AsyncHttpClientConfig transportConfig,
HttpOptions options)
Constructor for AsyncHttpTransport.
transportConfig - a AsyncHttpClientConfig objectpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic 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 ConfigurationSupportOptions objectCopyright © 2016–2024. All rights reserved.