Top Methods
org.apache.avro.file

public Interface Syncable

Known Direct Implementers
org.apache.avro.file.SyncableFileOutputStream
Imports
java.io.IOException

Method Summary

Modifier and TypeMethod and Description
public void
sync()

Sync the file to disk.

Method Detail

syncback to summary
public void sync() throws IOException

Sync the file to disk. On supported platforms, this method behaves like POSIX fsync and syncs all underlying OS buffers for this file descriptor to disk. On these platforms, if this method returns, the data written to this instance is guaranteed to be persisted on disk.

Exceptions
IOException:
- if an error occurred while attempting to sync the data to disk.