Package com.epam.fix.message.storage
Class ArenaMessageStorage
java.lang.Object
com.epam.fix.message.MessageStorage
com.epam.fix.message.storage.ByteBufferStorage
com.epam.fix.message.storage.ArenaMessageStorage
- All Implemented Interfaces:
ContinuousMessageStorage
Created by IntelliJ IDEA.
User: Alexander_Sereda
Date: 26.10.12
Time: 13:36
To change this template use File | Settings | File Templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(byte[] value, int offset, int length) voidadd(int tagIndex, byte[] value, int offset, int length) voidclearAll()voidcopy(ArenaMessageStorage srcStorage) byte[]byte[]getByteArray(int index) protected ByteBuffergetByteBuffer(int tagIndex) intintintbooleanisEmpty()booleanoverflow()Methods inherited from class com.epam.fix.message.storage.ByteBufferStorage
setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from class com.epam.fix.message.MessageStorage
getAsBoolean, getAsByte, getAsByteArray, getAsDouble, getAsLong, getAsReusableString, getAsString, getAsStringBuffer, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue
-
Field Details
-
ARENA_STORAGE_INITIAL_SIZE
protected static final int ARENA_STORAGE_INITIAL_SIZE- See Also:
-
ARENA_STORAGE_GROW_INCREMENT
protected static final int ARENA_STORAGE_GROW_INCREMENT- See Also:
-
MAX_BYTES_IN_ARENA_STORAGE
public static final int MAX_BYTES_IN_ARENA_STORAGE- See Also:
-
-
Constructor Details
-
ArenaMessageStorage
public ArenaMessageStorage()
-
-
Method Details
-
overflow
public boolean overflow() -
getOffset
public int getOffset() -
getByteArray
public byte[] getByteArray(int index) - Specified by:
getByteArrayin classMessageStorage
-
clearAll
public void clearAll()- Specified by:
clearAllin classMessageStorage
-
add
public void add(byte[] value, int offset, int length) -
add
public void add(int tagIndex, byte[] value, int offset, int length) - Specified by:
addin classMessageStorage
-
getByteBuffer
- Specified by:
getByteBufferin classByteBufferStorage
-
copy
-
getByteArray
public byte[] getByteArray()- Specified by:
getByteArrayin interfaceContinuousMessageStorage
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffsetin interfaceContinuousMessageStorage
-
getLength
public int getLength()- Specified by:
getLengthin interfaceContinuousMessageStorage
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classMessageStorage
-