public interface BufferedAppendable
BufferedAppendable.force() should be done on the "writing thread" or
under a lock that also ensures mutually-exclusive writing.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flush all appended data to the underlying store, release any resources held, and force all appended data to
be persisted to permanent storage.
|
void |
flush()
Write all appended data to the underlying store and prepare for subsequent writes.
|
void |
force()
Force all flushed data to be persisted to permanent storage.
|
default void |
prepareCheckpoint()
Optional operation.
|
void |
release()
Release any resources held.
|
void flush()
BufferedAppendable.force().default void prepareCheckpoint()
BufferedAppendable.force().
Should be called directly after BufferedAppendable.flush(), with no intervening modification operations.void force()
BufferedAppendable.prepareCheckpoint().
Does not imply BufferedAppendable.flush(), as this is a distinct operation in all implementations.
May be called concurrently by threads other than the "writing thread".void close()
BufferedAppendable.force() operations. A BufferedAppendable.release() is appropriate afterwards, especially on error.void release()
BufferedAppendable.force() operations.