Package emissary.output.roller
Interface IJournaler
-
- All Superinterfaces:
AutoCloseable
,Closeable
,Rollable
- All Known Implementing Classes:
JournaledCoalescer
public interface IJournaler extends Rollable
ARollable
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyedOutput
getOutput()
Returns and KeyedOutput object containing the final output file and can be written to as either an OutputStream or a SeekableByteChannel.
-
-
-
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.
-
-