java.lang.Object
jdk.nio.mapmode.ExtendedMapMode
JDK-specific map modes.
- Since:
- 14
- See Also:
FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)
-
Field Summary
Modifier and TypeFieldDescriptionstatic FileChannel.MapMode
File mapping mode for a read-only mapping of a file backed by non-volatile RAM.static FileChannel.MapMode
File mapping mode for a read-write mapping of a file backed by non-volatile RAM. -
Method Summary
-
Field Details
-
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
andMAP_SHARED_VALIDATE
flags are specified tommap
when mapping the file into memory.
-
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
andMAP_SHARED_VALIDATE
flags are specified tommap
when mapping the file into memory.
-