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, waitForNoResources
public HostResolver(EventLoopGroup elg) throws CrtRuntimeException
CrtRuntimeException
public HostResolver(EventLoopGroup elg, int maxEntries) throws CrtRuntimeException
CrtRuntimeException
protected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately
in class CrtResource
protected void releaseNativeHandle()
releaseNativeHandle
in class CrtResource
public static void setStaticDefaultMaxEntries(int maxEntries)
maxEntries
- maximum number of host entries cachedpublic static void closeStaticDefault()
Copyright © 2021. All rights reserved.