Class PagesList.PagesCache

java.lang.Object
org.apache.ignite.internal.persistence.freelist.PagesList.PagesCache
Enclosing class:
PagesList

public static class PagesList.PagesCache extends Object
Class to store page-list cache onheap.
  • Constructor Details

    • PagesCache

      public PagesCache(AtomicLong pagesCacheLimit)
      Default constructor.
  • Method Details

    • removePage

      public boolean removePage(long pageId)
      Remove page from the list.
      Parameters:
      pageId - Page id.
      Returns:
      True if page was found and succesfully removed, false if page not found.
    • poll

      public long poll()
      Poll next page from the list.
      Returns:
      pageId.
    • flush

      public GridLongList flush()
      Flush all stripes to one list and clear stripes.
    • add

      public boolean add(long pageId)
      Add pageId to the tail of the list.
      Parameters:
      pageId - Page id.
      Returns:
      True if page can be added, false if list is full.
    • size

      public int size()
      Cache size.