Class SharedHttpClientSessionManager

    • Field Detail

      • CORE_POOL_SIZE_PROPERTY

        public static final String CORE_POOL_SIZE_PROPERTY
        Configurable system property org.eclipse.rdf4j.client.executors.corePoolSize for specifying the background executor core thread pool size.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SharedHttpClientSessionManager

        public SharedHttpClientSessionManager()
      • SharedHttpClientSessionManager

        public SharedHttpClientSessionManager​(org.apache.http.impl.client.CloseableHttpClient dependentClient,
                                              ScheduledExecutorService dependentExecutorService)
    • Method Detail

      • getHttpClient

        public org.apache.http.client.HttpClient getHttpClient()
        Description copied from interface: HttpClientDependent
        HttpClient that has been assigned or has been used by this object. The life cycle might not be or might be tied to this object, depending on whether HttpClient was passed to or created by this object respectively.
        Specified by:
        getHttpClient in interface HttpClientDependent
        Specified by:
        getHttpClient in interface HttpClientSessionManager
        Returns:
        Returns the httpClient.
      • setHttpClient

        public void setHttpClient​(org.apache.http.client.HttpClient httpClient)
        Description copied from interface: HttpClientDependent
        Assign an HttpClient that this object should use. The life cycle of the given HttpClient is independent of this object. Closing or shutting down this object does not have any impact on the given client. Callers must ensure that the given client is properly closed elsewhere.
        Specified by:
        setHttpClient in interface HttpClientDependent
        Parameters:
        httpClient - The httpClient to use for remote/service calls.
      • setHttpClientBuilder

        public void setHttpClientBuilder​(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
        Set an optional HttpClientBuilder to create the inner httpClient (if the latter is not provided externally as dependent client).
        Parameters:
        httpClientBuilder - the builder for the managed HttpClient
        See Also:
        HttpClientBuilders
      • initialize

        @Deprecated
        public void initialize()
        Deprecated.
        Create a new instance instead of trying to reactivate an old instance.
        No-op