|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hornetq.api.core.HornetQBuffers
public class HornetQBuffers

Factory class to create HornetQBuffers
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HornetQBuffer dynamicBuffer(int size)
size - the initial size of the created HornetQBuffer
public static HornetQBuffer dynamicBuffer(byte[] bytes)
bytes - the created buffer will be initially filled with this byte array
public static HornetQBuffer wrappedBuffer(ByteBuffer underlying)
underlying - the underlying NIO ByteBuffer
public static HornetQBuffer wrappedBuffer(byte[] underlying)
underlying - the underlying byte array
public static HornetQBuffer fixedBuffer(int size)
size - the size of the created HornetQBuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||