ARTEMIS-1002 Use default PooledBufferAllocator in ActiveMQBuffers

This commit is contained in:
Martyn Taylor 2017-02-27 12:48:39 +00:00 committed by Clebert Suconic
parent 45e58c08dc
commit dc40f60e6b
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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();

View File

@ -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();