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.
|
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. |
static boolean |
UNMAP_SUPPORTED
true , if this platform supports unmapping mmapped files. |
Modifier and Type | Method and Description |
---|---|
static CleanerUtil.BufferCleaner |
getCleaner()
Reference to a BufferCleaner that does unmapping.
|
public static final boolean UNMAP_SUPPORTED
true
, if this platform supports unmapping mmapped files.public static final java.lang.String UNMAP_NOT_SUPPORTED_REASON
UNMAP_SUPPORTED
is false
, this contains the reason
why unmapping is not supported.public static CleanerUtil.BufferCleaner getCleaner()
null
if not supported.Copyright 2020 The Apache Software Foundation or its licensors, as applicable.