Class SimpleString.ByteBufSimpleStringPool

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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 SimpleString create​(io.netty.buffer.ByteBuf byteBuf, int length)
      Create a new entry.
      protected boolean isEqual​(SimpleString 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteBufSimpleStringPool

        public ByteBufSimpleStringPool()
      • ByteBufSimpleStringPool

        public ByteBufSimpleStringPool​(int capacity)
      • ByteBufSimpleStringPool

        public ByteBufSimpleStringPool​(int capacity,
                                       int maxCharsLength)