public class BufferPoolImpl extends Object implements BufferPool
Modifier and Type | Field and Description |
---|---|
protected InternalSerializationService |
serializationService |
Constructor and Description |
---|
BufferPoolImpl(InternalSerializationService serializationService) |
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.
|
protected final InternalSerializationService serializationService
public BufferPoolImpl(InternalSerializationService serializationService)
public BufferObjectDataOutput takeOutputBuffer()
BufferPool
takeOutputBuffer
in interface BufferPool
public void returnOutputBuffer(BufferObjectDataOutput out)
BufferPool
returnOutputBuffer
in interface BufferPool
out
- the BufferObjectDataOutput.public BufferObjectDataInput takeInputBuffer(Data data)
BufferPool
takeInputBuffer
in interface BufferPool
public void returnInputBuffer(BufferObjectDataInput in)
BufferPool
returnInputBuffer
in interface BufferPool
in
- the BufferObjectDataInput.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.