public final class ClientBootstrap extends CrtResource
| Constructor and Description |
|---|
ClientBootstrap(EventLoopGroup elg,
HostResolver hr)
Creates a new ClientBootstrap.
|
ClientBootstrap(int numThreads)
Creates a new ClientBootstrap.
|
| 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.
|
protected void |
releaseNativeHandle()
Cleans up the client bootstrap's associated native handle
|
acquireNativeHandle, addReferenceTo, close, collectNativeResources, getNativeHandle, isNativeResource, isNull, logNativeResources, releaseReferences, waitForNoResourcespublic ClientBootstrap(int numThreads)
throws CrtRuntimeException
numThreads - The number of Threads to use in the EventLoopCrtRuntimeException - If the system is unable to allocate space for a native client bootstrap objectpublic ClientBootstrap(EventLoopGroup elg, HostResolver hr) throws CrtRuntimeException
hr - A HostResolver instance, most applications only ever have oneelg - An EventLoopGroup instance, most applications only ever have oneCrtRuntimeException - If the provided EventLoopGroup is null or invalid,
or if the system is unable to allocate space for a native client bootstrap objectprotected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately in class CrtResourceprotected void releaseNativeHandle()
releaseNativeHandle in class CrtResourceCopyright © 2019. All rights reserved.