Class FilePositionCache

java.lang.Object
org.jgroups.raft.filelog.FilePositionCache

public class FilePositionCache extends Object
A mapping between the RAFT log index and where the log entry is stored in a file.
Since:
0.5.4
Author:
Pedro Ruivo, Francesco Nigro
  • Field Details

  • Constructor Details

    • FilePositionCache

      public FilePositionCache(long firstLogIndex)
    • FilePositionCache

      public FilePositionCache(long firstLogIndex, int requiredPages)
  • Method Details

    • getFirstLogIndex

      public long getFirstLogIndex()
    • getPosition

      public long getPosition(long logIndex)
    • set

      public boolean set(long logIndex, long position)
    • getFirstAppended

      public long getFirstAppended()
    • invalidateFrom

      public boolean invalidateFrom(long logIndex)
    • createDeleteCopyFrom

      public FilePositionCache createDeleteCopyFrom(long logIndex)