+ * @param index the index of the first log entry to get.
+ * @return the List of entries
+ */
+ @Nonnull List<ReplicatedLogEntry> getFrom(long index);
+
+ /**
+ * Returns a list of log entries starting from the given index up to the given maximum of entries or
+ * the given maximum accumulated size, whichever comes first.
+ *
+ * @param index the index of the first log entry to get
+ * @param maxEntries the maximum number of entries to get
+ * @param maxDataSize the maximum accumulated size of the log entries to get
+ * @return the List of entries meeting the criteria.