Class BufferPool


  • public class BufferPool
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferPool​(int maxSize, int bufferSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer get()  
      void initialize​(float factor)  
      void recycle​(java.nio.ByteBuffer buffer)  
      • Methods inherited from class java.lang.Object

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

      • BufferPool

        public BufferPool​(int maxSize,
                          int bufferSize)
    • Method Detail

      • initialize

        public void initialize​(float factor)
      • recycle

        public void recycle​(java.nio.ByteBuffer buffer)
      • get

        public java.nio.ByteBuffer get()