Interface BufferAllocator

All Known Implementing Classes:
CachedBufferAllocator, DefaultBufferAllocator

public interface BufferAllocator
BufferAllocator interface. The implementation of this interface must be thread-safe
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    allocate(int size)
     
    void
    release(byte[] buffer)
     
  • Method Details

    • allocate

      byte[] allocate(int size)
    • release

      void release(byte[] buffer)