public interface Syncable
void sync() throws IOException
fsyncand 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–2021 The Apache Software Foundation. All rights reserved.