FileReorderWrites.FileWriteOperation

A file operation (that might be re-ordered with other operations, or not be applied on power failure).

Methods
int apply(FileChannel channel)
Apply the operation to the channel.
int apply(FileChannel channel) throws IOException
Apply the operation to the channel.
Parameters:
channel - the channel
Returns:
the return value of the operation
long getTime()
long getTime()
boolean overlaps(FileReorderWrites.FileWriteOperation other)
Check whether the file region of this operation overlaps with another operation.
boolean overlaps(FileReorderWrites.FileWriteOperation other)
Check whether the file region of this operation overlaps with another operation.
Parameters:
other - the other operation
Returns:
if there is an overlap
String toString()
String toString()