Package org.conscrypt
Class BufferAllocator
java.lang.Object
org.conscrypt.BufferAllocator
An object responsible for allocation of buffers. This is an extension point to enable buffer
pooling within an application.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AllocatedBuffer
allocateDirectBuffer
(int capacity) Allocates a direct (i.e.static BufferAllocator
unpooled()
Returns an unpooled buffer allocator, which will create a new buffer for each request.
-
Field Details
-
UNPOOLED
-
-
Constructor Details
-
BufferAllocator
public BufferAllocator()
-
-
Method Details
-
unpooled
Returns an unpooled buffer allocator, which will create a new buffer for each request. -
allocateDirectBuffer
Allocates a direct (i.e. non-heap) buffer with the given capacity.
-