Class SlimPooledBuffer

java.lang.Object
org.restheart.buffers.SlimPooledBuffer
All Implemented Interfaces:
io.undertow.connector.PooledByteBuffer, Closeable, AutoCloseable

public class SlimPooledBuffer extends Object implements io.undertow.connector.PooledByteBuffer
Author:
Andrea Di Cesare
  • Constructor Details

    • SlimPooledBuffer

      public SlimPooledBuffer(boolean direct, int bufferSize)
  • Method Details

    • getBuffer

      public ByteBuffer getBuffer()
      Specified by:
      getBuffer in interface io.undertow.connector.PooledByteBuffer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface io.undertow.connector.PooledByteBuffer
    • open

      public void open()
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface io.undertow.connector.PooledByteBuffer
    • toString

      public String toString()
      Overrides:
      toString in class Object