Package io.grpc.internal
Interface WritableBufferAllocator
-
- All Known Implementing Classes:
NettyWritableBufferAllocator
public interface WritableBufferAllocatorAn allocator of buffers provided by the transport implementation toMessageFramerso it can send chunks of data to the transport in a form that the transport can directly serialize.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WritableBufferallocate(int capacityHint)Request a newWritableBufferwith the givencapacityHint.
-
-
-
Method Detail
-
allocate
WritableBuffer allocate(int capacityHint)
Request a newWritableBufferwith the givencapacityHint. The allocator is free to return a buffer with a greater or lesser capacity.
-
-