public static final class TypedProperties.StringValue.ByteBufStringValuePool extends AbstractByteBufPool<TypedProperties.StringValue>
DEFAULT_POOL_CAPACITY
Constructor and Description |
---|
ByteBufStringValuePool() |
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. |
getOrCreate
public ByteBufStringValuePool()
public ByteBufStringValuePool(int capacity, int maxCharsLength)
protected boolean isEqual(TypedProperties.StringValue entry, io.netty.buffer.ByteBuf byteBuf, int offset, int length)
AbstractByteBufPool
true
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)
AbstractByteBufPool
true
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)
AbstractByteBufPool
create
in class AbstractByteBufPool<TypedProperties.StringValue>
Copyright © 2018 JBoss by Red Hat. All rights reserved.