Package org.apache.lucene.store
Class ByteBuffersDataOutput.ByteBufferRecycler
- java.lang.Object
-
- org.apache.lucene.store.ByteBuffersDataOutput.ByteBufferRecycler
-
- Enclosing class:
- ByteBuffersDataOutput
public static final class ByteBuffersDataOutput.ByteBufferRecycler extends java.lang.ObjectAn implementation of aByteBufferallocation and recycling policy. The blocks are recycled if exactly the same size is requested, otherwise they're released to be GCed.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferRecycler(java.util.function.IntFunction<java.nio.ByteBuffer> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferallocate(int size)voidreuse(java.nio.ByteBuffer buffer)
-