Class ByteBufAllocatorAdaptor

  • All Implemented Interfaces:
    io.netty.buffer.ByteBufAllocator, AutoCloseable

    public class ByteBufAllocatorAdaptor
    extends Object
    implements io.netty.buffer.ByteBufAllocator, AutoCloseable
    • Method Detail

      • buffer

        public io.netty.buffer.ByteBuf buffer()
        Specified by:
        buffer in interface io.netty.buffer.ByteBufAllocator
      • isClosed

        public boolean isClosed()
      • buffer

        public io.netty.buffer.ByteBuf buffer​(int initialCapacity)
        Specified by:
        buffer in interface io.netty.buffer.ByteBufAllocator
      • buffer

        public io.netty.buffer.ByteBuf buffer​(int initialCapacity,
                                              int maxCapacity)
        Specified by:
        buffer in interface io.netty.buffer.ByteBufAllocator
      • ioBuffer

        public io.netty.buffer.ByteBuf ioBuffer()
        Specified by:
        ioBuffer in interface io.netty.buffer.ByteBufAllocator
      • ioBuffer

        public io.netty.buffer.ByteBuf ioBuffer​(int initialCapacity)
        Specified by:
        ioBuffer in interface io.netty.buffer.ByteBufAllocator
      • ioBuffer

        public io.netty.buffer.ByteBuf ioBuffer​(int initialCapacity,
                                                int maxCapacity)
        Specified by:
        ioBuffer in interface io.netty.buffer.ByteBufAllocator
      • heapBuffer

        public io.netty.buffer.ByteBuf heapBuffer()
        Specified by:
        heapBuffer in interface io.netty.buffer.ByteBufAllocator
      • heapBuffer

        public io.netty.buffer.ByteBuf heapBuffer​(int initialCapacity)
        Specified by:
        heapBuffer in interface io.netty.buffer.ByteBufAllocator
      • heapBuffer

        public io.netty.buffer.ByteBuf heapBuffer​(int initialCapacity,
                                                  int maxCapacity)
        Specified by:
        heapBuffer in interface io.netty.buffer.ByteBufAllocator
      • directBuffer

        public io.netty.buffer.ByteBuf directBuffer()
        Specified by:
        directBuffer in interface io.netty.buffer.ByteBufAllocator
      • directBuffer

        public io.netty.buffer.ByteBuf directBuffer​(int initialCapacity)
        Specified by:
        directBuffer in interface io.netty.buffer.ByteBufAllocator
      • directBuffer

        public io.netty.buffer.ByteBuf directBuffer​(int initialCapacity,
                                                    int maxCapacity)
        Specified by:
        directBuffer in interface io.netty.buffer.ByteBufAllocator
      • compositeBuffer

        public io.netty.buffer.CompositeByteBuf compositeBuffer()
        Specified by:
        compositeBuffer in interface io.netty.buffer.ByteBufAllocator
      • compositeBuffer

        public io.netty.buffer.CompositeByteBuf compositeBuffer​(int maxNumComponents)
        Specified by:
        compositeBuffer in interface io.netty.buffer.ByteBufAllocator
      • compositeHeapBuffer

        public io.netty.buffer.CompositeByteBuf compositeHeapBuffer()
        Specified by:
        compositeHeapBuffer in interface io.netty.buffer.ByteBufAllocator
      • compositeHeapBuffer

        public io.netty.buffer.CompositeByteBuf compositeHeapBuffer​(int maxNumComponents)
        Specified by:
        compositeHeapBuffer in interface io.netty.buffer.ByteBufAllocator
      • compositeDirectBuffer

        public io.netty.buffer.CompositeByteBuf compositeDirectBuffer()
        Specified by:
        compositeDirectBuffer in interface io.netty.buffer.ByteBufAllocator
      • compositeDirectBuffer

        public io.netty.buffer.CompositeByteBuf compositeDirectBuffer​(int maxNumComponents)
        Specified by:
        compositeDirectBuffer in interface io.netty.buffer.ByteBufAllocator
      • isDirectBufferPooled

        public boolean isDirectBufferPooled()
        Specified by:
        isDirectBufferPooled in interface io.netty.buffer.ByteBufAllocator
      • calculateNewCapacity

        public int calculateNewCapacity​(int minNewCapacity,
                                        int maxCapacity)
        Specified by:
        calculateNewCapacity in interface io.netty.buffer.ByteBufAllocator