public final class BufferPoolThreadLocal extends Object
BufferPoolImpl
.
The reason not a regular ThreadLocal is being used is that the pooled instances should be
pooled per HZ instance because:
- buffers can contain references to hz instance specifics
- buffers for a given hz instance should be cleanable when the instance shuts down and we don't
want to have memory leaks.Constructor and Description |
---|
BufferPoolThreadLocal(SerializationService serializationService,
BufferPoolFactory bufferPoolFactory) |
public BufferPoolThreadLocal(SerializationService serializationService, BufferPoolFactory bufferPoolFactory)
public BufferPool get()
public void clear()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.