public final class ActiveMQBuffers extends Object
ActiveMQBuffer
.Modifier and Type | Method and Description |
---|---|
static ActiveMQBuffer |
dynamicBuffer(byte[] bytes)
Creates a self-expanding ActiveMQBuffer filled with the given byte array
|
static ActiveMQBuffer |
dynamicBuffer(int size)
Creates a self-expanding ActiveMQBuffer with the given initial size
|
static ActiveMQBuffer |
fixedBuffer(int size)
Creates a fixed ActiveMQBuffer of the given size
|
static ActiveMQBuffer |
pooledBuffer(int size) |
static ActiveMQBuffer |
wrappedBuffer(byte[] underlying)
Creates an ActiveMQBuffer wrapping an underlying byte array
|
static ActiveMQBuffer |
wrappedBuffer(io.netty.buffer.ByteBuf underlying)
Creates an ActiveMQBuffer wrapping an underlying ByteBuf
The position on this buffer won't affect the position on the inner buffer
|
static ActiveMQBuffer |
wrappedBuffer(ByteBuffer underlying)
Creates an ActiveMQBuffer wrapping an underlying NIO ByteBuffer
The position on this buffer won't affect the position on the inner buffer
|
public static ActiveMQBuffer dynamicBuffer(int size)
size
- the initial size of the created ActiveMQBufferpublic static ActiveMQBuffer pooledBuffer(int size)
public static ActiveMQBuffer dynamicBuffer(byte[] bytes)
bytes
- the created buffer will be initially filled with this byte arraypublic static ActiveMQBuffer wrappedBuffer(ByteBuffer underlying)
underlying
- the underlying NIO ByteBufferpublic static ActiveMQBuffer wrappedBuffer(io.netty.buffer.ByteBuf underlying)
underlying
- the underlying NIO ByteBufferpublic static ActiveMQBuffer wrappedBuffer(byte[] underlying)
underlying
- the underlying byte arraypublic static ActiveMQBuffer fixedBuffer(int size)
size
- the size of the created ActiveMQBufferCopyright © 2019 JBoss by Red Hat. All rights reserved.