public final class WritableMapHandle extends MapHandle implements WritableHandle
| Modifier and Type | Method and Description |
|---|---|
void |
force()
Forces any changes made to this content to be written to the storage device containing the
mapped file.
|
WritableMemory |
get()
Gets a Memory
|
boolean |
isLoaded()
Tells whether or not the content is resident in physical memory.
|
void |
load()
Loads content into physical memory.
|
public WritableMemory get()
Handlepublic void force()
If the file mapped into this buffer resides on a local storage device then when this method returns, it is guaranteed that all changes made to the buffer since it was created, or since this method was last invoked, will have been written to that device.
If the file does not reside on a local device then no such guarantee can be made.
If this buffer was not mapped in read/write mode (java.nio.channels.FileChannel.MapMode.READ_WRITE) then invoking this method has no effect.
public void load()
public boolean isLoaded()
Copyright © 2015–2018 Yahoo! Inc.. All rights reserved.