MCPcopy Create free account
hub / github.com/cschanck/single-file-java / flush

Method flush

src/main/java/org/sfj/ChiseledMap.java:454–457  ·  view source on GitHub ↗

Flush any buffered changes to disk, fsync. @throws IOException If you get an IOException, literally no guarantees can be made about the on disk state of the data.

()

Source from the content-addressed store, hash-verified

452 * can be made about the on disk state of the data.
453 */
454 public void flush() throws IOException {
455 flushBuffer();
456 fc.force(false);
457 }
458
459 /**
460 * Retrieve the value associated with a specified key.

Callers 9

test1KWritesMethod · 0.95
closeMethod · 0.45
genRandStringMethod · 0.45
ChiseledMapClass · 0.45
EncoderInterface · 0.45
sendNoLockMethod · 0.45
emitMethod · 0.45
dumpFSMMethod · 0.45

Calls 1

flushBufferMethod · 0.95

Tested by 4

test1KWritesMethod · 0.76
closeMethod · 0.36
genRandStringMethod · 0.36