Class SocketReceiveBufferAllocator

    • Field Detail

      • buf

        private java.nio.ByteBuffer buf
      • exceedCount

        private int exceedCount
      • maxExceedCount

        private final int maxExceedCount
      • percentual

        private final int percentual
    • Constructor Detail

      • SocketReceiveBufferAllocator

        SocketReceiveBufferAllocator()
      • SocketReceiveBufferAllocator

        SocketReceiveBufferAllocator​(int maxExceedCount,
                                     int percentual)
    • Method Detail

      • get

        java.nio.ByteBuffer get​(int size)
      • newBuffer

        private java.nio.ByteBuffer newBuffer​(int size)
      • normalizeCapacity

        private static int normalizeCapacity​(int capacity)