public class ArenaMessageStorage extends ByteBufferStorage implements ContinuousMessageStorage
Modifier and Type | Field and Description |
---|---|
protected static int |
ARENA_STORAGE_GROW_INCREMENT |
protected static int |
ARENA_STORAGE_INITIAL_SIZE |
static int |
MAX_BYTES_IN_ARENA_STORAGE |
Constructor and Description |
---|
ArenaMessageStorage() |
Modifier and Type | Method and Description |
---|---|
void |
add(byte[] value,
int offset,
int length) |
void |
add(int tagIndex,
byte[] value,
int offset,
int length) |
void |
clearAll() |
void |
copy(ArenaMessageStorage srcStorage) |
byte[] |
getByteArray() |
byte[] |
getByteArray(int index) |
protected ByteBuffer |
getByteBuffer(int tagIndex) |
int |
getLength() |
int |
getOffset() |
int |
getStartOffset() |
boolean |
isEmpty() |
boolean |
overflow() |
setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
getAsBoolean, getAsByte, getAsByteArray, getAsDouble, getAsLong, getAsReusableString, getAsString, getAsStringBuffer, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue
protected static final int ARENA_STORAGE_INITIAL_SIZE
protected static final int ARENA_STORAGE_GROW_INCREMENT
public static final int MAX_BYTES_IN_ARENA_STORAGE
public boolean overflow()
public int getOffset()
public byte[] getByteArray(int index)
getByteArray
in class MessageStorage
public void clearAll()
clearAll
in class MessageStorage
public void add(byte[] value, int offset, int length)
public void add(int tagIndex, byte[] value, int offset, int length)
add
in class MessageStorage
protected ByteBuffer getByteBuffer(int tagIndex)
getByteBuffer
in class ByteBufferStorage
public void copy(ArenaMessageStorage srcStorage)
public byte[] getByteArray()
getByteArray
in interface ContinuousMessageStorage
public int getStartOffset()
getStartOffset
in interface ContinuousMessageStorage
public int getLength()
getLength
in interface ContinuousMessageStorage
public boolean isEmpty()
isEmpty
in class MessageStorage
Copyright © 2000–2022 EPAM Systems. All rights reserved.