public class PageCacheRecycler extends AbstractComponent implements Releasable
Modifier and Type | Class and Description |
---|---|
static class |
PageCacheRecycler.Type |
Modifier and Type | Field and Description |
---|---|
static Setting<ByteSizeValue> |
LIMIT_HEAP_SETTING |
static Setting<PageCacheRecycler.Type> |
TYPE_SETTING |
static Setting<java.lang.Double> |
WEIGHT_BYTES_SETTING |
static Setting<java.lang.Double> |
WEIGHT_INT_SETTING |
static Setting<java.lang.Double> |
WEIGHT_LONG_SETTING |
static Setting<java.lang.Double> |
WEIGHT_OBJECTS_SETTING |
deprecationLogger, logger, settings
Modifier | Constructor and Description |
---|---|
protected |
PageCacheRecycler(Settings settings) |
Modifier and Type | Method and Description |
---|---|
Recycler.V<byte[]> |
bytePage(boolean clear) |
void |
close() |
Recycler.V<int[]> |
intPage(boolean clear) |
Recycler.V<long[]> |
longPage(boolean clear) |
Recycler.V<java.lang.Object[]> |
objectPage() |
logDeprecatedSetting, logRemovedSetting, nodeName
public static final Setting<PageCacheRecycler.Type> TYPE_SETTING
public static final Setting<ByteSizeValue> LIMIT_HEAP_SETTING
public static final Setting<java.lang.Double> WEIGHT_BYTES_SETTING
public static final Setting<java.lang.Double> WEIGHT_LONG_SETTING
public static final Setting<java.lang.Double> WEIGHT_INT_SETTING
public static final Setting<java.lang.Double> WEIGHT_OBJECTS_SETTING
protected PageCacheRecycler(Settings settings)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface Releasable
public Recycler.V<byte[]> bytePage(boolean clear)
public Recycler.V<int[]> intPage(boolean clear)
public Recycler.V<long[]> longPage(boolean clear)
public Recycler.V<java.lang.Object[]> objectPage()