Package org.apache.pulsar.client.impl
Class HttpClient
- java.lang.Object
-
- org.apache.pulsar.client.impl.HttpClient
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class HttpClient extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.pulsar.client.api.Authenticationauthenticationprotected static intDEFAULT_CONNECT_TIMEOUT_IN_SECONDSprotected static intDEFAULT_READ_TIMEOUT_IN_SECONDSprotected org.asynchttpclient.AsyncHttpClienthttpClientprotected ServiceNameResolverserviceNameResolver
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpClient(ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T> java.util.concurrent.CompletableFuture<T>get(java.lang.String path, java.lang.Class<T> clazz)
-
-
-
Field Detail
-
DEFAULT_CONNECT_TIMEOUT_IN_SECONDS
protected static final int DEFAULT_CONNECT_TIMEOUT_IN_SECONDS
- See Also:
- Constant Field Values
-
DEFAULT_READ_TIMEOUT_IN_SECONDS
protected static final int DEFAULT_READ_TIMEOUT_IN_SECONDS
- See Also:
- Constant Field Values
-
httpClient
protected final org.asynchttpclient.AsyncHttpClient httpClient
-
serviceNameResolver
protected final ServiceNameResolver serviceNameResolver
-
authentication
protected final org.apache.pulsar.client.api.Authentication authentication
-
-
Constructor Detail
-
HttpClient
protected HttpClient(ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup) throws org.apache.pulsar.client.api.PulsarClientException
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
get
public <T> java.util.concurrent.CompletableFuture<T> get(java.lang.String path, java.lang.Class<T> clazz)
-
-