public interface BufferPool
BufferObjectDataInput
and BufferObjectDataOutput
instances.
The BufferPool is accessed using the BufferPoolThreadLocal
So each thread gets its own instance and therefore
it doesn't need to be thread-safe.Modifier and Type | Method and Description |
---|---|
void |
returnInputBuffer(BufferObjectDataInput in)
Returns a BufferObjectDataInput back to the pool.
|
void |
returnOutputBuffer(BufferObjectDataOutput out)
Returns a BufferObjectDataOutput back to the pool.
|
BufferObjectDataInput |
takeInputBuffer(Data data)
Takes an BufferObjectDataInput from the pool and initializes it with the given data.
|
BufferObjectDataOutput |
takeOutputBuffer()
Takes an BufferObjectDataOutput from the pool.
|
BufferObjectDataOutput takeOutputBuffer()
void returnOutputBuffer(BufferObjectDataOutput out)
out
- the BufferObjectDataOutput.BufferObjectDataInput takeInputBuffer(Data data)
data
- void returnInputBuffer(BufferObjectDataInput in)
in
- the BufferObjectDataInput.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.