// Position in this buffer of the first object that hasn't// been returned to the client. uint32_t offset;
// Holds statistics about line lengths of the form <length, count> // where length is the number of characters in a line (including // the newline), and count is the number of lines with // exactly that many characters. If there are no lines with // a particular length, then there is no entry for that length. private TreeMap<Integer, Integer> numLinesWithLength;
/* FOLLOWER VARIABLE: indicator variable that allows the Receiver and the
* PeriodicTasks thread to communicate about whether a heartbeat has been
* received within the follower's election timeout window.
* Toggled to TRUE when a valid heartbeat is received.
* Toggled to FALSE when the election timeout window is reset. */
private boolean receivedValidHeartbeat;
/* True means that a heartbeat has been received since the last time
* the election timer was reset. Used for communication between the
* Receiver and PeriodicTasks threads. */
private boolean receivedValidHeartbeat;