Package org.elasticsearch.common.util
Class PageCacheRecycler
java.lang.Object
org.elasticsearch.common.util.PageCacheRecycler
A recycler of fixed-size pages.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static Setting<ByteSizeValue>
static int
static PageCacheRecycler
static int
static int
Page size in bytes: 16KBstatic Setting<PageCacheRecycler.Type>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRecycler.V<byte[]>
bytePage(boolean clear)
Recycler.V<int[]>
intPage(boolean clear)
Recycler.V<long[]>
longPage(boolean clear)
Recycler.V<Object[]>
-
Field Details
-
TYPE_SETTING
-
LIMIT_HEAP_SETTING
-
WEIGHT_BYTES_SETTING
-
WEIGHT_LONG_SETTING
-
WEIGHT_INT_SETTING
-
WEIGHT_OBJECTS_SETTING
-
PAGE_SIZE_IN_BYTES
public static final int PAGE_SIZE_IN_BYTESPage 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
-
-
Constructor Details
-
PageCacheRecycler
-
-
Method Details
-
bytePage
-
intPage
-
longPage
-
objectPage
-