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.
()
| 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. |