Class PageCacheRecycler

java.lang.Object
org.elasticsearch.common.util.PageCacheRecycler

public class PageCacheRecycler extends Object
A recycler of fixed-size pages.
  • Field Details

    • TYPE_SETTING

      public static final Setting<PageCacheRecycler.Type> TYPE_SETTING
    • LIMIT_HEAP_SETTING

      public static final Setting<ByteSizeValue> LIMIT_HEAP_SETTING
    • WEIGHT_BYTES_SETTING

      public static final Setting<Double> WEIGHT_BYTES_SETTING
    • WEIGHT_LONG_SETTING

      public static final Setting<Double> WEIGHT_LONG_SETTING
    • WEIGHT_INT_SETTING

      public static final Setting<Double> WEIGHT_INT_SETTING
    • WEIGHT_OBJECTS_SETTING

      public static final Setting<Double> WEIGHT_OBJECTS_SETTING
    • PAGE_SIZE_IN_BYTES

      public static final int PAGE_SIZE_IN_BYTES
      Page size in bytes: 16KB
      See Also:
      Constant Field Values
    • OBJECT_PAGE_SIZE

      public static final int OBJECT_PAGE_SIZE
    • LONG_PAGE_SIZE

      public static final int LONG_PAGE_SIZE
      See Also:
      Constant Field Values
    • INT_PAGE_SIZE

      public static final int INT_PAGE_SIZE
      See Also:
      Constant Field Values
    • BYTE_PAGE_SIZE

      public static final int BYTE_PAGE_SIZE
      See Also:
      Constant Field Values
    • NON_RECYCLING_INSTANCE

      public static final PageCacheRecycler NON_RECYCLING_INSTANCE
  • Constructor Details

    • PageCacheRecycler

      public PageCacheRecycler(Settings settings)
  • Method Details

    • bytePage

      public Recycler.V<byte[]> bytePage(boolean clear)
    • intPage

      public Recycler.V<int[]> intPage(boolean clear)
    • longPage

      public Recycler.V<long[]> longPage(boolean clear)
    • objectPage

      public Recycler.V<Object[]> objectPage()