public interface Syncable
Modifier and Type | Method and Description |
---|---|
void |
sync()
Sync the file to disk.
|
void sync() throws IOException
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.IOException
- - if an error occurred while attempting to sync the
data to disk.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.