public class HttpClientConnection extends CrtResource
CrtResource.ResourceInstance| Modifier | Constructor and Description |
|---|---|
protected |
HttpClientConnection(long connectionBinding) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canReleaseReferencesImmediately()
Determines whether a resource releases its dependencies at the same time the native handle is released or if it waits.
|
HttpStream |
makeRequest(HttpRequest request,
HttpStreamResponseHandler streamHandler)
Schedules an HttpRequest on the Native EventLoop for this HttpClientConnection.
|
protected void |
releaseNativeHandle()
Releases this HttpClientConnection back into the Connection Pool, and allows another Request to acquire this connection.
|
void |
shutdown()
Shuts down the underlying http connection.
|
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResourcespublic HttpStream makeRequest(HttpRequest request, HttpStreamResponseHandler streamHandler) throws CrtRuntimeException
request - The Request to make to the Server.streamHandler - The Stream Handler to be called from the Native EventLoopCrtRuntimeException - if stream creation failsprotected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately in class CrtResourceprotected void releaseNativeHandle()
releaseNativeHandle in class CrtResourcepublic void shutdown()
Copyright © 2021. All rights reserved.