public static final class TypedProperties.StringValue.ByteBufStringValuePool extends AbstractByteBufPool<TypedProperties.StringValue>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_LENGTH |
DEFAULT_POOL_CAPACITY| Constructor and Description |
|---|
ByteBufStringValuePool() |
ByteBufStringValuePool(int capacity) |
ByteBufStringValuePool(int capacity,
int maxCharsLength) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canPool(io.netty.buffer.ByteBuf byteBuf,
int length)
Returns
true if length's byteBuf content from ByteBuf.readerIndex() can be pooled,
false otherwise. |
protected TypedProperties.StringValue |
create(io.netty.buffer.ByteBuf byteBuf,
int length)
Create a new entry.
|
protected boolean |
isEqual(TypedProperties.StringValue entry,
io.netty.buffer.ByteBuf byteBuf,
int offset,
int length)
Returns
true if the entry content is the same of byteBuf at the specified offset
and length false otherwise. |
getOrCreatepublic static final int DEFAULT_MAX_LENGTH
public ByteBufStringValuePool()
public ByteBufStringValuePool(int capacity)
public ByteBufStringValuePool(int capacity,
int maxCharsLength)
protected boolean isEqual(TypedProperties.StringValue entry, io.netty.buffer.ByteBuf byteBuf, int offset, int length)
AbstractByteBufPooltrue if the entry content is the same of byteBuf at the specified offset
and length false otherwise.isEqual in class AbstractByteBufPool<TypedProperties.StringValue>protected boolean canPool(io.netty.buffer.ByteBuf byteBuf,
int length)
AbstractByteBufPooltrue if length's byteBuf content from ByteBuf.readerIndex() can be pooled,
false otherwise.canPool in class AbstractByteBufPool<TypedProperties.StringValue>protected TypedProperties.StringValue create(io.netty.buffer.ByteBuf byteBuf, int length)
AbstractByteBufPoolcreate in class AbstractByteBufPool<TypedProperties.StringValue>Copyright © 2022 The Apache Software Foundation. All rights reserved.