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, waitForNoResources
public 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 CrtResource
protected void releaseNativeHandle()
releaseNativeHandle
in class CrtResource
public CompletableFuture<Void> getShutdownCompleteFuture()
Copyright © 2020. All rights reserved.