Package org.apache.avro.file
Interface Syncable
- All Known Implementing Classes:
SyncableFileOutputStream
public interface Syncable
-
Method Summary
-
Method Details
-
sync
Sync the file to disk. On supported platforms, this method behaves like POSIXfsync
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.- Throws:
IOException
- - if an error occurred while attempting to sync the data to disk.
-