Interface WritableBufferAllocator


public interface WritableBufferAllocator
An allocator of buffers provided by the transport implementation to MessageFramer so it can send chunks of data to the transport in a form that the transport can directly serialize.
  • Method Summary

    Modifier and Type
    Method
    Description
    allocate(int capacityHint)
    Request a new WritableBuffer with the given capacityHint.
  • Method Details

    • allocate

      WritableBuffer allocate(int capacityHint)
      Request a new WritableBuffer with the given capacityHint. The allocator is free to return a buffer with a greater or lesser capacity.