Class IndexPage

java.lang.Object
com.swiftmq.impl.store.standard.index.IndexPage
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
QueueIndexPage, RootIndexPage

public abstract class IndexPage extends Object implements Iterator
  • Constructor Details

    • IndexPage

      protected IndexPage(StoreContext ctx, int pageNo)
  • Method Details

    • setPageNo

      public void setPageNo(int pageNo)
    • setJournal

      public void setJournal(List journal)
    • getLogRecord

      public List getLogRecord()
    • load

      public void load()
    • unload

      public void unload() throws Exception
      Throws:
      Exception
    • getPage

      public Page getPage()
    • getNextPage

      public int getNextPage()
    • setNextPage

      public void setNextPage(int l)
    • getPrevPage

      public int getPrevPage()
    • setPrevPage

      public void setPrevPage(int l)
    • getNumberEntries

      public int getNumberEntries()
    • getNumberValidEntries

      public int getNumberValidEntries()
    • getFirstFreePosition

      public int getFirstFreePosition()
    • available

      public int available()
    • addEntry

      public void addEntry(IndexEntry indexEntry)
      Parameters:
      indexEntry -
    • iterator

      public Iterator iterator()
    • next

      public Object next()
      Specified by:
      next in interface Iterator
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator
    • replace

      public void replace(IndexEntry newEntry)
    • createIndexEntry

      protected abstract IndexEntry createIndexEntry()
    • toString

      public String toString()
      Overrides:
      toString in class Object