Interface AtomicConfigWriter.FileOperations
- Enclosing class:
AtomicConfigWriter
static interface AtomicConfigWriter.FileOperations
The file-system steps of a write and a load, as a seam for fault-injection tests. The default methods are
the real operations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcopyAttributes(Path from, Path to) default voiddefault voidforce(FileChannel channel) default voiddefault voidmove(Path source, Path destination, CopyOption... options) default FileChannelopen(Path temporary, FileAttribute<?>... attributes) default FileChannelopenBackup(Path backup, FileAttribute<?>... attributes) default FileChannelopenTarget(Path target) default byte[]default FileAttribute<?>[]temporaryAttributes(Path target) default voidwrite(FileChannel channel, ByteBuffer data)
-
Method Details
-
temporaryAttributes
- Throws:
IOException
-
open
- Throws:
IOException
-
openBackup
- Throws:
IOException
-
openTarget
- Throws:
IOException
-
delete
- Throws:
IOException
-
write
- Throws:
IOException
-
force
- Throws:
IOException
-
copyAttributes
- Throws:
IOException
-
move
- Throws:
IOException
-
link
- Throws:
IOException
-
read
- Throws:
IOException
-