public class HostResolver extends CrtResource
CrtResource.ResourceInstance| Constructor and Description |
|---|
HostResolver(EventLoopGroup elg) |
HostResolver(EventLoopGroup elg,
int maxEntries) |
| 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.
|
static void |
closeStaticDefault()
Closes the static default host resolver, if it exists.
|
protected void |
releaseNativeHandle()
Cleans up the resolver's associated native handle
|
static void |
setStaticDefaultMaxEntries(int maxEntries)
Sets the max number of cached host entries for the static default resolver, if it's ever created/used.
|
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResourcespublic HostResolver(EventLoopGroup elg) throws CrtRuntimeException
CrtRuntimeExceptionpublic HostResolver(EventLoopGroup elg, int maxEntries) throws CrtRuntimeException
CrtRuntimeExceptionprotected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately in class CrtResourceprotected void releaseNativeHandle()
releaseNativeHandle in class CrtResourcepublic static void setStaticDefaultMaxEntries(int maxEntries)
maxEntries - maximum number of host entries cachedpublic static void closeStaticDefault()
Copyright © 2021. All rights reserved.