| org.apache.directmemory.memory.AllocationPolicy |
Known Indirect Subclasses
|
Interface describing the buffer allocation policy.
The implementations will be initialized by setting the list of buffers init(List),
and every allocation will call #getActiveBuffer(OffHeapMemoryBuffer, int),
passing the previously (possibly null) buffer that failed to allocate and the number of the current allocation
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
Allocator to use to allocate. | |||||||||||
Initialization function.
| |||||||||||
Reset internal state
| |||||||||||
Reset internal state