APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.nio.mapmode

public Class ExtendedMapMode

extends Object
Class Inheritance
Imports
java.nio.MappedByteBuffer, java.nio.channels.FileChannel, .FileChannel.MapMode

JDK-specific map modes.
Since
14
See Also
java.nio.channels.FileChannel#map

Field Summary

Modifier and TypeField and Description
public static final FileChannel.MapMode
READ_ONLY_SYNC

File mapping mode for a read-only mapping of a file backed by non-volatile RAM.

public static final FileChannel.MapMode
READ_WRITE_SYNC

File mapping mode for a read-write mapping of a file backed by non-volatile RAM.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

READ_ONLY_SYNCback to summary
public static final FileChannel.MapMode READ_ONLY_SYNC

File mapping mode for a read-only mapping of a file backed by non-volatile RAM.

The map method throws UnsupportedOperationException when this map mode is used on an implementation that does not support it.

Implementation Note

On Linux, the MAP_SYNC and MAP_SHARED_VALIDATE flags are specified to mmap when mapping the file into memory.

READ_WRITE_SYNCback to summary
public static final FileChannel.MapMode READ_WRITE_SYNC

File mapping mode for a read-write mapping of a file backed by non-volatile RAM. force operations on a buffer created with this mode will be performed using cache line writeback rather than proceeding via a file device flush.

The map method throws UnsupportedOperationException when this map mode is used on an implementation that does not support it.

Implementation Note

On Linux, the MAP_SYNC and MAP_SHARED_VALIDATE flags are specified to mmap when mapping the file into memory.

Constructor Detail

ExtendedMapModeback to summary
private ExtendedMapMode()