public final class CleanerUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
CleanerUtil.BufferCleaner
Pass in an implementation of this interface to cleanup ByteBuffers.
(传入此接口的实现以清理 ByteBuffers。)
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNMAP_NOT_SUPPORTED_REASON
if
UNMAP_SUPPORTED is
false , this contains the reason why unmapping is not supported.
(如果 UNMAP_SUPPORTED 为 false,则包含不支持取消映射的原因。)
|
static boolean |
UNMAP_SUPPORTED
true , if this platform supports unmapping mmapped files.
(如果此平台支持取消映射 mmaped 文件,则为 true。)
|
Modifier and Type | Method and Description |
---|---|
static CleanerUtil.BufferCleaner |
getCleaner()
Reference to a BufferCleaner that does unmapping.
(对执行取消映射的 BufferCleaner 的引用。)
|
public static final boolean UNMAP_SUPPORTED
true
, if this platform supports unmapping mmapped files.
(如果此平台支持取消映射 mmaped 文件,则为 true。)
public static final java.lang.String UNMAP_NOT_SUPPORTED_REASON
UNMAP_SUPPORTED
is
false
, this contains the reason why unmapping is not supported.
(如果 UNMAP_SUPPORTED 为 false,则包含不支持取消映射的原因。)
public static CleanerUtil.BufferCleaner getCleaner()
null
if not supported.
(如果不支持,则为 null。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.