@Private
@Unstable
public final class CleanerUtil
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
CleanerUtil.BufferCleaner |
Pass in an implementation of this interface to cleanup ByteBuffers.
|
| Modifier and Type | Field | 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 | 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 © 2008–2025 Apache Software Foundation. All rights reserved.