public final class ClientBootstrap extends CrtResource
CrtResource.ResourceInstance| Constructor and Description |
|---|
ClientBootstrap(EventLoopGroup elg,
HostResolver hr)
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.
|
CompletableFuture<Void> |
getShutdownCompleteFuture() |
protected void |
releaseNativeHandle()
Cleans up the client bootstrap's associated native handle
|
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResourcespublic 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 CrtResourcepublic CompletableFuture<Void> getShutdownCompleteFuture()
Copyright © 2021. All rights reserved.