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