Class SocketBufferHandler


  • public class SocketBufferHandler
    extends java.lang.Object
    • Constructor Detail

      • SocketBufferHandler

        public SocketBufferHandler​(int readBufferSize,
                                   int writeBufferSize,
                                   boolean direct)
    • Method Detail

      • configureReadBufferForWrite

        public void configureReadBufferForWrite()
      • configureReadBufferForRead

        public void configureReadBufferForRead()
      • getReadBuffer

        public java.nio.ByteBuffer getReadBuffer()
      • isReadBufferEmpty

        public boolean isReadBufferEmpty()
      • unReadReadBuffer

        public void unReadReadBuffer​(java.nio.ByteBuffer returnedData)
      • configureWriteBufferForWrite

        public void configureWriteBufferForWrite()
      • configureWriteBufferForRead

        public void configureWriteBufferForRead()
      • isWriteBufferWritable

        public boolean isWriteBufferWritable()
      • getWriteBuffer

        public java.nio.ByteBuffer getWriteBuffer()
      • isWriteBufferEmpty

        public boolean isWriteBufferEmpty()
      • reset

        public void reset()
      • expand

        public void expand​(int newSize)
      • free

        public void free()