Interface HttpClientBuilderFactory
- All Superinterfaces:
PrioritizedFactory
- All Known Implementing Classes:
ApacheHttpClientBuilderFactory, JdkHttpClientBuilderFactory, OkHttpClientBuilderFactory
-
Field Summary
Fields inherited from interface PrioritizedFactory
DEFAULT_PRIORITY, YIELDS_TO_OTHERS -
Method Summary
-
Method Details
-
create
HttpClientBuilder create() -
priority
default int priority()The priority used when selecting a factory from the classpath. Higher values take precedence. Factories with the same highest priority cause a conflict. An explicitlangchain4j.http.clientBuilderFactorysystem property overrides this priority.- Specified by:
priorityin interfacePrioritizedFactory- Returns:
- the priority,
PrioritizedFactory.DEFAULT_PRIORITYby default; the JDK implementation usesPrioritizedFactory.YIELDS_TO_OTHERSas a fallback - Since:
- 1.24.0
-