Class AbstractNativeClientBuilder

    • Field Detail

      • registry

        protected final org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> registry
      • path

        protected final String path
      • log

        protected final Logger log
    • Constructor Detail

      • AbstractNativeClientBuilder

        public AbstractNativeClientBuilder​(String path,
                                           int maxConnections,
                                           Logger logger)
    • Method Detail

      • getConnectionSocketFactory

        protected abstract org.apache.http.conn.socket.ConnectionSocketFactory getConnectionSocketFactory()
      • getProtocol

        protected abstract String getProtocol()
      • buildPooledClient

        public org.apache.http.impl.client.CloseableHttpClient buildPooledClient()
        Description copied from interface: ClientBuilder
        Create a pooled client
        Specified by:
        buildPooledClient in interface ClientBuilder
        Returns:
        an HTTP client
      • buildBasicClient

        public org.apache.http.impl.client.CloseableHttpClient buildBasicClient()
                                                                         throws IOException
        Description copied from interface: ClientBuilder
        Create a basic client with a single connection. This is the client which should be used in long running threads
        Specified by:
        buildBasicClient in interface ClientBuilder
        Returns:
        an HTTP client
        Throws:
        IOException