Package org.apache.pulsar.client.impl
Class HttpClient
java.lang.Object
org.apache.pulsar.client.impl.HttpClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Authentication
protected static final int
protected static final int
protected ScheduledExecutorService
protected final org.asynchttpclient.AsyncHttpClient
protected final ServiceNameResolver
protected PulsarSslFactory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HttpClient
(ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup) -
Method Summary
Modifier and TypeMethodDescriptionprotected PulsarSslConfiguration
buildSslConfiguration
(ClientConfigurationData config, String host) void
close()
<T> CompletableFuture
<T> protected void
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT_IN_SECONDS
protected static final int DEFAULT_CONNECT_TIMEOUT_IN_SECONDS- See Also:
-
DEFAULT_READ_TIMEOUT_IN_SECONDS
protected static final int DEFAULT_READ_TIMEOUT_IN_SECONDS- See Also:
-
httpClient
protected final org.asynchttpclient.AsyncHttpClient httpClient -
serviceNameResolver
-
authentication
-
executorService
-
sslFactory
-
-
Constructor Details
-
HttpClient
protected HttpClient(ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup) throws PulsarClientException - Throws:
PulsarClientException
-
-
Method Details
-
resolveHost
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
get
-
buildSslConfiguration
protected PulsarSslConfiguration buildSslConfiguration(ClientConfigurationData config, String host) throws PulsarClientException - Throws:
PulsarClientException
-
refreshSslContext
protected void refreshSslContext()
-