ARTEMIS-1002 Use default PooledBufferAllocator in ActiveMQBuffers
This commit is contained in:
parent
45e58c08dc
commit
dc40f60e6b
|
@ -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…
Reference in New Issue