Search in sources :

Example 1 with NeoByteBufferPool

use of org.neo4j.io.bufferpool.impl.NeoByteBufferPool in project neo4j by neo4j.

the class AbstractDirectBufferTest method setUp.

@BeforeEach
void setUp() {
    var buckets = List.of("1K:1", "2K:1", "4K:1", "8K:1");
    var poolConfig = new NeoBufferPoolConfigOverride(Duration.ZERO, buckets);
    var bufferManger = new NeoByteBufferPool(poolConfig, new MemoryPools(), null);
    tracingPoolWrapper = new TracingPoolWrapper(bufferManger);
    nettyBufferAllocator = new NettyMemoryManagerWrapper(tracingPoolWrapper);
}
Also used : MemoryPools(org.neo4j.memory.MemoryPools) NeoByteBufferPool(org.neo4j.io.bufferpool.impl.NeoByteBufferPool) NeoBufferPoolConfigOverride(org.neo4j.io.bufferpool.impl.NeoBufferPoolConfigOverride) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 NeoBufferPoolConfigOverride (org.neo4j.io.bufferpool.impl.NeoBufferPoolConfigOverride)1 NeoByteBufferPool (org.neo4j.io.bufferpool.impl.NeoByteBufferPool)1 MemoryPools (org.neo4j.memory.MemoryPools)1