@FunctionalInterface
public static interface ChunkWriter.WriteCallback
| Modifier and Type | Method and Description |
|---|---|
boolean |
write(java.nio.ByteBuffer buffer,
long position)
Performs an uninterruptable write of the given bytes to the given file position.
|
boolean write(java.nio.ByteBuffer buffer,
long position)
throws java.io.IOException
buffer - the bytes to writeposition - the file position to write them toThread.interrupt(). Note that the
write must succeed regardless of the return value.java.io.IOException - if unable to perform the write