Uses of Record Class
com.loomcache.server.consensus.LogEntry
Packages that use LogEntry
-
Uses of LogEntry in com.loomcache.server.consensus
Methods in com.loomcache.server.consensus that return LogEntryModifier and TypeMethodDescriptionstatic LogEntryLogEntry.configChange(long term, long index, ConfigChange change) Factory method to create a CONFIG_CHANGE entry.@Nullable LogEntryRaftLog.getEntry(long index) Get a log entry at a specific index.static LogEntryLogEntry.noOp(long term, long index) Factory method to create a NO_OP entry.Methods in com.loomcache.server.consensus that return types with arguments of type LogEntryModifier and TypeMethodDescriptionRaftLog.getEntriesFrom(long startIndex) Get all entries from a starting index to the end of the log (inclusive).RaftLog.getEntryRange(long fromIndex, long toIndex) Retrieve a range of entries from the log.Methods in com.loomcache.server.consensus with parameters of type LogEntryModifier and TypeMethodDescriptionlongRaftLog.appendEntry(LogEntry entry) Append a pre-built LogEntry to the log.voidRaftLog.restoreEntry(LogEntry entry) Restore a log entry during WAL recovery, preserving its persisted index exactly.Method parameters in com.loomcache.server.consensus with type arguments of type LogEntry -
Uses of LogEntry in com.loomcache.server.persistence
Methods in com.loomcache.server.persistence that return LogEntryModifier and TypeMethodDescription@Nullable LogEntryPersistentRaftLog.getEntry(long index) Get a log entry at a specific index.Methods in com.loomcache.server.persistence that return types with arguments of type LogEntryModifier and TypeMethodDescriptionWalReader.WalRecoveryMetadata.entries()Returns the value of theentriesrecord component.PersistentRaftLog.getEntriesFrom(long startIndex) Get entries from a starting index to the end of the log (inclusive).Methods in com.loomcache.server.persistence with parameters of type LogEntryModifier and TypeMethodDescriptionvoidAppend a log entry to the Write-Ahead Log.Method parameters in com.loomcache.server.persistence with type arguments of type LogEntryModifier and TypeMethodDescriptionvoidAppend multiple entries with WAL persistence (batch operation).voidWalWriter.appendBatch(List<LogEntry> entries) Append multiple log entries in a single batch operation.voidTruncate the WAL file by atomically rewriting with only retained entries.Constructor parameters in com.loomcache.server.persistence with type arguments of type LogEntryModifierConstructorDescriptionWalRecoveryMetadata(List<LogEntry> entries, long lastValidIndex, int totalEntriesRecovered, int corruptedEntriesSkipped, long corruptionPosition) Creates an instance of aWalRecoveryMetadatarecord class.