Interface WALStreamReader

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ProtobufWALStreamReader

@Private public interface WALStreamReader extends Closeable
A one way WAL reader, without reset and seek support.

In most cases you should use this interface to read WAL file, as the implementation is simple and robust. For replication, where we want to tail the WAL file which is currently being written, you should use WALTailingReader instead.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Override to remove the 'throws IOException' as we are just a reader.
    long
    Get the current reading position.
    default WAL.Entry
    Read the next entry in WAL.
    next(WAL.Entry reuse)
    Read the next entry in WAL, use the given WAL.Entry if not null to hold the data.