Class PulsarByteBufAllocator
- java.lang.Object
-
- org.apache.pulsar.common.allocator.PulsarByteBufAllocator
-
public class PulsarByteBufAllocator extends java.lang.ObjectHolder of a ByteBuf allocator.
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.buffer.ByteBufAllocatorDEFAULTstatic java.lang.StringPULSAR_ALLOCATOR_EXIT_ON_OOMstatic java.lang.StringPULSAR_ALLOCATOR_LEAK_DETECTIONstatic java.lang.StringPULSAR_ALLOCATOR_OUT_OF_MEMORY_POLICYstatic java.lang.StringPULSAR_ALLOCATOR_POOLED
-
Constructor Summary
Constructors Constructor Description PulsarByteBufAllocator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterOOMListener(java.util.function.Consumer<java.lang.OutOfMemoryError> listener)
-
-
-
Field Detail
-
PULSAR_ALLOCATOR_POOLED
public static final java.lang.String PULSAR_ALLOCATOR_POOLED
- See Also:
- Constant Field Values
-
PULSAR_ALLOCATOR_EXIT_ON_OOM
public static final java.lang.String PULSAR_ALLOCATOR_EXIT_ON_OOM
- See Also:
- Constant Field Values
-
PULSAR_ALLOCATOR_LEAK_DETECTION
public static final java.lang.String PULSAR_ALLOCATOR_LEAK_DETECTION
- See Also:
- Constant Field Values
-
PULSAR_ALLOCATOR_OUT_OF_MEMORY_POLICY
public static final java.lang.String PULSAR_ALLOCATOR_OUT_OF_MEMORY_POLICY
- See Also:
- Constant Field Values
-
DEFAULT
public static final io.netty.buffer.ByteBufAllocator DEFAULT
-
-