T
- the type of value to be used in the bufferpublic static interface BufferManager.DistinctBufferMaker<T>
BufferManager.DistinctBuffer
.Modifier and Type | Method and Description |
---|---|
BufferManager.DistinctBufferMaker<T> |
keepSize(boolean keepBufferSize)
Specify whether to keep track of the buffer size when adding value.
|
BufferManager.DistinctBuffer<T> |
make()
Create the
BufferManager.DistinctBuffer instance. |
BufferManager.DistinctBufferMaker<T> |
useHeap(boolean useHeap)
Specify whether to store the bufer on the heap.
|
BufferManager.DistinctBufferMaker<T> useHeap(boolean useHeap)
useHeap
- true if the buffer's contents are to be stored on the heap, or false if off-heap storage should be used.BufferManager.DistinctBufferMaker<T> keepSize(boolean keepBufferSize)
keepBufferSize
- true if the buffer is to efficiently track its size, or false if it can skip this and, only if
BufferManager.Buffer.size()
is called, compute the size in a brute force manner.BufferManager.DistinctBuffer<T> make()
BufferManager.DistinctBuffer
instance.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.