public class BufferPoolImpl extends Object implements BufferPool
Modifier and Type | Field and Description |
---|---|
protected SerializationService |
serializationService |
Constructor and Description |
---|
BufferPoolImpl(SerializationService 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 SerializationService serializationService
public BufferPoolImpl(SerializationService 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 © 2016 Hazelcast, Inc.. All Rights Reserved.