public class HttpClientConnection extends CrtResource
CrtResource.ResourceInstance
Modifier | Constructor and Description |
---|---|
protected |
HttpClientConnection(HttpClientConnectionManager manager,
long connection) |
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() |
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResources
protected HttpClientConnection(HttpClientConnectionManager manager, long connection)
public 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 CrtResource
protected void releaseNativeHandle()
releaseNativeHandle
in class CrtResource
public void shutdown()
Copyright © 2021. All rights reserved.