Package com.mongodb.connection
Interface BufferProvider
-
- All Known Subinterfaces:
Stream
public interface BufferProvider
A provider of instances of ByteBuf.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuf
getBuffer(int size)
Gets a buffer with the givens capacity.
-
-
-
Method Detail
-
getBuffer
ByteBuf getBuffer(int size)
Gets a buffer with the givens capacity.- Parameters:
size
- the size required for the buffer- Returns:
- a ByteBuf with the given size, which is now owned by the caller and must be released.
-
-