public class MappedBufferCleaner extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | UNMAP_NOT_SUPPORTED_REASONif  UNMAP_SUPPORTEDisfalse, this contains the reason  why unmapping is
 not supported. | 
| static boolean | UNMAP_SUPPORTEDtrue, if this platform supports unmapping mmapped files. | 
| Constructor and Description | 
|---|
| MappedBufferCleaner() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | freeBuffer(ByteBuffer b)If a cleaner is available, this buffer will be cleaned. | 
public static final boolean UNMAP_SUPPORTED
true, if this platform supports unmapping mmapped files.public static final String UNMAP_NOT_SUPPORTED_REASON
UNMAP_SUPPORTED is false, this contains the reason  why unmapping is
 not supported.public static void freeBuffer(ByteBuffer b) throws IOException
b - buffer to clean; no-op if buffer is nullIOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.