Class HttpAPIClientHelper.MeteredManagedHttpClientConnectionFactory
java.lang.Object
org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory
com.clickhouse.client.api.internal.HttpAPIClientHelper.MeteredManagedHttpClientConnectionFactory
- All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpConnectionFactory<org.apache.hc.client5.http.io.ManagedHttpClientConnection>
- Enclosing class:
- HttpAPIClientHelper
public class HttpAPIClientHelper.MeteredManagedHttpClientConnectionFactory
extends org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory
org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory.Builder -
Field Summary
Fields inherited from class org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory
INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionMeteredManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, org.apache.hc.core5.http.impl.io.DefaultHttpResponseParserFactory defaultHttpResponseParserFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.io.ManagedHttpClientConnectioncreateConnection(Socket socket) longgetTime()Methods inherited from class org.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory
builder
-
Constructor Details
-
MeteredManagedHttpClientConnectionFactory
public MeteredManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, org.apache.hc.core5.http.impl.io.DefaultHttpResponseParserFactory defaultHttpResponseParserFactory)
-
-
Method Details
-
createConnection
public org.apache.hc.client5.http.io.ManagedHttpClientConnection createConnection(Socket socket) throws IOException - Specified by:
createConnectionin interfaceorg.apache.hc.core5.http.io.HttpConnectionFactory<org.apache.hc.client5.http.io.ManagedHttpClientConnection>- Overrides:
createConnectionin classorg.apache.hc.client5.http.impl.io.ManagedHttpClientConnectionFactory- Throws:
IOException
-
getTime
public long getTime()
-