State

open class State

Used to track of the state of a log and hold the collected entries.

Constructors

Link copied to clipboard
constructor(name: String)
constructor(name: String, nextIndex: Long)

Functions

Link copied to clipboard
Get collected entries for this log.
Link copied to clipboard
open fun getName(): String
Get the name of the log.
Link copied to clipboard
open fun getNextIndex(): Long
The next index for collecting new entries for this log.
Link copied to clipboard
open fun reset()
Reset the next index to 0 and clear the entry list.
Link copied to clipboard
open fun setNextIndex(nextIndex: Long)
Set the next index to collecting new entries for this log.