java.lang.Object
jdk.nio.mapmode.ExtendedMapMode
public class ExtendedMapMode extends Object
JDK-specific map modes.
- Since:
- 14
- See Also:
- FileChannel.map(java.nio.channels.FileChannel.MapMode, long, long)
- 
Field SummaryFields Modifier and Type Field Description static FileChannel.MapModeREAD_ONLY_SYNCFile mapping mode for a read-only mapping of a file backed by non-volatile RAM.static FileChannel.MapModeREAD_WRITE_SYNCFile mapping mode for a read-write mapping of a file backed by non-volatile RAM.
- 
Method Summary
- 
Field Details- 
READ_ONLY_SYNCFile 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_SYNCandMAP_SHARED_VALIDATEflags are specified tommapwhen mapping the file into memory.
 
- 
READ_WRITE_SYNCFile 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_SYNCandMAP_SHARED_VALIDATEflags are specified tommapwhen mapping the file into memory.
 
 
-