Displaying 1 result from an estimated 1 matches for "standardopenoption".
2018 Mar 14
1
How to sync content to a file through standard Java APIs
...fficially succeeded write the contents MUST have been actually synced to disk on at least one of the Gluster FS nodes in the replica set.
Our questions:
1. Which JDK 8 APIs can we use that would fulfill this requirement with an actually working sync?
2. Is java.nio.channels.FileChannel.open with StandardOpenOption#SYNC in the set of options given to this method an option, or would it perhaps not actually guarantee the sync?
3. Apart from 2., are there other ways to achieve the requirement through the standard JDK 8 APIs?
Kind Regards
Sven