public class HttpClient extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected Authentication |
authentication |
protected static int |
DEFAULT_CONNECT_TIMEOUT_IN_SECONDS |
protected static int |
DEFAULT_READ_TIMEOUT_IN_SECONDS |
protected org.asynchttpclient.AsyncHttpClient |
httpClient |
protected ServiceNameResolver |
serviceNameResolver |
| Modifier | Constructor and Description |
|---|---|
protected |
HttpClient(ClientConfigurationData conf,
io.netty.channel.EventLoopGroup eventLoopGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> CompletableFuture<T> |
get(String path,
Class<T> clazz) |
protected static final int DEFAULT_CONNECT_TIMEOUT_IN_SECONDS
protected static final int DEFAULT_READ_TIMEOUT_IN_SECONDS
protected final org.asynchttpclient.AsyncHttpClient httpClient
protected final ServiceNameResolver serviceNameResolver
protected final Authentication authentication
protected HttpClient(ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup) throws PulsarClientException
PulsarClientExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic <T> CompletableFuture<T> get(String path, Class<T> clazz)
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.