Class NettyAsyncHttpClientProvider
java.lang.Object
com.azure.core.http.netty.NettyAsyncHttpClientProvider
- All Implemented Interfaces:
com.azure.core.http.HttpClientProvider
public final class NettyAsyncHttpClientProvider
extends Object
implements com.azure.core.http.HttpClientProvider
The NettyAsyncHttpClientProvider class is an implementation of the HttpClientProvider interface that provides an instance of HttpClient based on Netty. Instances are either shared or a newly created based on the configuration.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFor testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.HttpClientcom.azure.core.http.HttpClientcreateInstance(com.azure.core.util.HttpClientOptions clientOptions)
-
Constructor Details
-
NettyAsyncHttpClientProvider
public NettyAsyncHttpClientProvider()For testing purpose only, assigning 'AZURE_ENABLE_HTTP_CLIENT_SHARING' to 'enableHttpClientSharing' for 'final' modifier.
-
-
Method Details
-
createInstance
public com.azure.core.http.HttpClient createInstance()- Specified by:
createInstancein interfacecom.azure.core.http.HttpClientProvider
-
createInstance
public com.azure.core.http.HttpClient createInstance(com.azure.core.util.HttpClientOptions clientOptions) - Specified by:
createInstancein interfacecom.azure.core.http.HttpClientProvider
-