mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-09 11:35:18 +00:00
ARTEMIS-1002 Use default PooledBufferAllocator in ActiveMQBuffers
(cherry picked from commit dc40f60e6bce0baedf2eb5e777f820b8a7ee7f92)
This commit is contained in:
parent
e79524683e
commit
fbdac0c97d
@ -28,7 +28,7 @@ import org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper;
|
|||||||
public final class ActiveMQBuffers {
|
public final class ActiveMQBuffers {
|
||||||
|
|
||||||
|
|
||||||
private static final PooledByteBufAllocator ALLOCATOR = new PooledByteBufAllocator();
|
private static final PooledByteBufAllocator ALLOCATOR = PooledByteBufAllocator.DEFAULT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a <em>self-expanding</em> ActiveMQBuffer with the given initial size
|
* Creates a <em>self-expanding</em> ActiveMQBuffer with the given initial size
|
||||||
|
@ -28,7 +28,7 @@ import io.netty.buffer.UnpooledByteBufAllocator;
|
|||||||
*/
|
*/
|
||||||
public class PartialPooledByteBufAllocator implements ByteBufAllocator {
|
public class PartialPooledByteBufAllocator implements ByteBufAllocator {
|
||||||
|
|
||||||
private static final ByteBufAllocator POOLED = new PooledByteBufAllocator(false);
|
private static final ByteBufAllocator POOLED = PooledByteBufAllocator.DEFAULT;
|
||||||
private static final ByteBufAllocator UNPOOLED = new UnpooledByteBufAllocator(false);
|
private static final ByteBufAllocator UNPOOLED = new UnpooledByteBufAllocator(false);
|
||||||
|
|
||||||
public static final PartialPooledByteBufAllocator INSTANCE = new PartialPooledByteBufAllocator();
|
public static final PartialPooledByteBufAllocator INSTANCE = new PartialPooledByteBufAllocator();
|
||||||
|
@ -28,7 +28,7 @@ import io.netty.buffer.UnpooledByteBufAllocator;
|
|||||||
*/
|
*/
|
||||||
public class PartialPooledByteBufAllocator implements ByteBufAllocator {
|
public class PartialPooledByteBufAllocator implements ByteBufAllocator {
|
||||||
|
|
||||||
private static final ByteBufAllocator POOLED = new PooledByteBufAllocator(false);
|
private static final ByteBufAllocator POOLED = PooledByteBufAllocator.DEFAULT;
|
||||||
private static final ByteBufAllocator UNPOOLED = new UnpooledByteBufAllocator(false);
|
private static final ByteBufAllocator UNPOOLED = new UnpooledByteBufAllocator(false);
|
||||||
|
|
||||||
public static final PartialPooledByteBufAllocator INSTANCE = new PartialPooledByteBufAllocator();
|
public static final PartialPooledByteBufAllocator INSTANCE = new PartialPooledByteBufAllocator();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user