Interface IJournaler

  • All Superinterfaces:
    AutoCloseable, Closeable, Rollable
    All Known Implementing Classes:
    JournaledCoalescer

    public interface IJournaler
    extends Rollable
    A Rollable implementation that uses a journal to record offsets of completed writes to a pool of outputs. The Journal serves as a write ahead log and records positions of all open file handles until rolled.
    • Method Detail

      • getOutput

        KeyedOutput getOutput()
                       throws IOException
        Returns and KeyedOutput object containing the final output file and can be written to as either an OutputStream or a SeekableByteChannel. This method will block if objects from the pool have been exhausted.
        Returns:
        a KeyedOutput object
        Throws:
        IOException - If there is some I/O problem.