Class SimpleString.ByteBufSimpleStringPool

java.lang.Object
org.apache.activemq.artemis.utils.AbstractByteBufPool<SimpleString>
org.apache.activemq.artemis.api.core.SimpleString.ByteBufSimpleStringPool
Enclosing class:
SimpleString

public static final class SimpleString.ByteBufSimpleStringPool extends AbstractByteBufPool<SimpleString>
  • Field Details

  • Constructor Details

    • ByteBufSimpleStringPool

      public ByteBufSimpleStringPool()
    • ByteBufSimpleStringPool

      public ByteBufSimpleStringPool(int capacity)
    • ByteBufSimpleStringPool

      public ByteBufSimpleStringPool(int capacity, int maxCharsLength)
  • Method Details

    • isEqual

      protected boolean isEqual(SimpleString entry, io.netty.buffer.ByteBuf byteBuf, int offset, int length)
      Description copied from class: AbstractByteBufPool
      Returns true if the entry content is the same of byteBuf at the specified offset and length false otherwise.
      Specified by:
      isEqual in class AbstractByteBufPool<SimpleString>
      Returns:
      true if the entry content is the same of byteBuf at the specified offset and length false otherwise
    • canPool

      protected boolean canPool(io.netty.buffer.ByteBuf byteBuf, int length)
      Description copied from class: AbstractByteBufPool
      Returns true if length's byteBuf content from ByteBuf.readerIndex() can be pooled, false otherwise.
      Specified by:
      canPool in class AbstractByteBufPool<SimpleString>
      Returns:
      true if length's byteBuf content from ByteBuf.readerIndex() can be pooled, false otherwise
    • create

      protected SimpleString create(io.netty.buffer.ByteBuf byteBuf, int length)
      Description copied from class: AbstractByteBufPool
      Create a new entry.
      Specified by:
      create in class AbstractByteBufPool<SimpleString>