UM Java API
6.16.1
|
A PDM message consists of a definition and the corresponding optional and required fields as specified by the definition. Use PDMMessage#toBytes() to serialize a message to bytes or PDMMessage#parse(byte[]) to deserialize a message from bytes. See Pre-Defined Messages for general information on PDM. More...
Static Public Attributes | |
static final int | VERSION_POLICY_EXACT = 0 |
static final int | VERSION_POLICY_BEST = 1 |
Protected Member Functions | |
Collection< PDMField > | getFields () |
int | getDataSegmentLen () |
A PDM message consists of a definition and the corresponding optional and required fields as specified by the definition. Use PDMMessage#toBytes() to serialize a message to bytes or PDMMessage#parse(byte[]) to deserialize a message from bytes. See Pre-Defined Messages for general information on PDM.
com.latencybusters.pdm.PDMMessage.PDMMessage | ( | ) |
Empty constructor can be used when the PDMDefinition is not available.
com.latencybusters.pdm.PDMMessage.PDMMessage | ( | PDMDefinition | definition | ) |
Creates a message from a finalized PDMDefinition
definition | The finalized PDMDefinition |
References com.latencybusters.pdm.PDMMessage.loadDefinition().
com.latencybusters.pdm.PDMMessage.PDMMessage | ( | int | definitionId, |
int | versionMajor, | ||
int | versionMinor | ||
) |
Creates a message from a finalized definition by looking it up in the PDMDefinitionCache by the id passed
definitionId | The definition id to lookup in the cache |
versionMajor | |
versionMinor |
References com.latencybusters.pdm.PDMDefinitionCache.get(), com.latencybusters.pdm.PDMDefinitionCache.getInstance(), and com.latencybusters.pdm.PDMMessage.loadDefinition().
PDMFieldIterator com.latencybusters.pdm.PDMMessage.createFieldIterator | ( | ) |
Creates a new PDMFieldIterator to traverse through the PDMFields
Object com.latencybusters.pdm.PDMMessage.getFieldValue | ( | PDMFieldInfo | fieldInfo | ) |
Gets a field value by using the PDMFieldInfo handle from the PDMDefinition
fieldInfo | the PDMFieldInfo handle |
byte [] com.latencybusters.pdm.PDMMessage.getFieldValueAsBlob | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a byte[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getBlobValue().
byte [][] com.latencybusters.pdm.PDMMessage.getFieldValueAsBlobArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a an array of blobs
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getBlobArrayValue().
boolean com.latencybusters.pdm.PDMMessage.getFieldValueAsBoolean | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a boolean
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getBooleanValue().
boolean [] com.latencybusters.pdm.PDMMessage.getFieldValueAsBooleanArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a boolean[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getBooleanArrayValue().
PDMDecimal com.latencybusters.pdm.PDMMessage.getFieldValueAsDecimal | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a PDMDecimal
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getDecimalValue().
PDMDecimal [] com.latencybusters.pdm.PDMMessage.getFieldValueAsDecimalArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a PDMDecimal[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getDecimalArrayValue().
double com.latencybusters.pdm.PDMMessage.getFieldValueAsDouble | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a double
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getDoubleValue().
double [] com.latencybusters.pdm.PDMMessage.getFieldValueAsDoubleArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a double[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getDoubleArrayValue().
float com.latencybusters.pdm.PDMMessage.getFieldValueAsFloat | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a float
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getFloatValue().
float [] com.latencybusters.pdm.PDMMessage.getFieldValueAsFloatArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a float[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getFloatArrayValue().
short com.latencybusters.pdm.PDMMessage.getFieldValueAsInt16 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a short
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt16Value().
short [] com.latencybusters.pdm.PDMMessage.getFieldValueAsInt16Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a short[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt16ArrayValue().
int com.latencybusters.pdm.PDMMessage.getFieldValueAsInt32 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as an int
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt32Value().
int [] com.latencybusters.pdm.PDMMessage.getFieldValueAsInt32Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a int[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt32ArrayValue().
long com.latencybusters.pdm.PDMMessage.getFieldValueAsInt64 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a long
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt64Value().
long [] com.latencybusters.pdm.PDMMessage.getFieldValueAsInt64Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a long[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt64ArrayValue().
byte com.latencybusters.pdm.PDMMessage.getFieldValueAsInt8 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a byte
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt8Value().
byte [] com.latencybusters.pdm.PDMMessage.getFieldValueAsInt8Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a byte[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getInt8ArrayValue().
PDMMessage com.latencybusters.pdm.PDMMessage.getFieldValueAsMessage | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a PDMMessage
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getMessageValue().
PDMMessage [] com.latencybusters.pdm.PDMMessage.getFieldValueAsMessageArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a PDMMessage[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getMessageArrayValue().
String com.latencybusters.pdm.PDMMessage.getFieldValueAsString | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a String
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getStringValue().
String [] com.latencybusters.pdm.PDMMessage.getFieldValueAsStringArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a String[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getStringArrayValue().
PDMTimestamp com.latencybusters.pdm.PDMMessage.getFieldValueAsTimestamp | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a PDMTimestamp
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getTimestampValue().
PDMTimestamp [] com.latencybusters.pdm.PDMMessage.getFieldValueAsTimestampArray | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a PDMTimestamp[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getTimestampArrayValue().
int com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt16 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as an int (UInt16)
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt16Value().
int [] com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt16Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a int[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt16ArrayValue().
long com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt32 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a long (UInt32)
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt32Value().
long [] com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt32Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a long[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt32ArrayValue().
BigInteger com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt64 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a BigInteger
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt64Value().
BigInteger [] com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt64Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a BigInteger[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt64ArrayValue().
short com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt8 | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a short (UInt8)
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt8Value().
short [] com.latencybusters.pdm.PDMMessage.getFieldValueAsUInt8Array | ( | PDMFieldInfo | fieldInfo | ) |
Gets the field value by using the PDMFieldInfo handle from the PDMDefinition as a short[]
fieldInfo | the PDMFieldInfo handle |
References com.latencybusters.pdm.PDMField.getUInt8ArrayValue().
int com.latencybusters.pdm.PDMMessage.getMessageLen | ( | ) |
Gets the message length in bytes which is known after it has been serialized
References com.latencybusters.pdm.PDMDefinition.calcLen(), com.latencybusters.pdm.PDMDefinition.compareTo(), com.latencybusters.pdm.PDMDefinition.compareToWithVersion(), com.latencybusters.pdm.PDMDefinitionCache.get(), com.latencybusters.pdm.PDMDefinition.getFieldInfoById(), com.latencybusters.pdm.PDMDefinition.getFixedRequiredLen(), com.latencybusters.pdm.PDMField.getLenIncludingHeader(), com.latencybusters.pdm.PDMDeserializer.isByteSwap(), com.latencybusters.pdm.PDMMessage.isIncludeDefinition(), com.latencybusters.pdm.PDMMessage.loadDefinition(), com.latencybusters.pdm.PDMDefinition.parse(), com.latencybusters.pdm.PDMDeserializer.readInt(), com.latencybusters.pdm.PDMDefinition.toBytes(), com.latencybusters.pdm.PDMMessage.toBytes(), and com.latencybusters.pdm.PDMSerializer.writeByteArray().
Referenced by com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
boolean com.latencybusters.pdm.PDMMessage.isFieldValueSet | ( | PDMFieldInfo | fieldInfo | ) |
Checks to see if the field's value is set
fieldInfo | the corresponding field info handle |
boolean com.latencybusters.pdm.PDMMessage.isIncludeDefinition | ( | ) |
Returns whether the PDMDefinition will be included when serializing to bytes (defaults to false)
Referenced by com.latencybusters.pdm.PDMMessage.getMessageLen().
boolean com.latencybusters.pdm.PDMMessage.isTryToLoadDefFromCache | ( | ) |
Returns whether or not an attempt will be made when parsing a message to try to automatically loaded a PDMDefinition from the PDMDefinitionCache if the one currently set doesn't exactly match the one in the incoming message; the current one will be replaced (defaults to false)
boolean com.latencybusters.pdm.PDMMessage.isUseMsgDefIfNeeded | ( | ) |
Returns whether an included PDMDefinition should be parsed and used instead of the previously set PDMDefinition in cases where the two ids, major versions, and minor versions do not match exactly (defaults to false)
void com.latencybusters.pdm.PDMMessage.loadDefinition | ( | PDMDefinition | definition | ) |
Loads the PDMDefinition passed and initializes the PDMMessage
definition | the PDMDefinition to load |
Referenced by com.latencybusters.pdm.PDMMessage.getMessageLen(), and com.latencybusters.pdm.PDMMessage.PDMMessage().
int com.latencybusters.pdm.PDMMessage.parse | ( | byte[] | ba | ) |
Deserializes a message from a byte array
ba | the byte array |
Referenced by com.latencybusters.pdm.PDMField.getMessageArrayValue(), com.latencybusters.pdm.PDMField.getMessageValue(), and com.latencybusters.pdm.PDMMessage.parse().
int com.latencybusters.pdm.PDMMessage.parse | ( | byte[] | ba, |
int | pos | ||
) |
Deserializes a message from a byte array at position
ba | the byte array |
pos | the starting position |
References com.latencybusters.pdm.PDMMessage.parse().
int com.latencybusters.pdm.PDMMessage.parse | ( | PDMDeserializer | deser, |
byte[] | ba, | ||
int | pos | ||
) |
Deserializes a message from a byte array at position
deser | the PDMDeserializer to use |
ba | the byte array |
pos | the starting position |
PDMMessage com.latencybusters.pdm.PDMMessage.removeFieldValue | ( | PDMFieldInfo | fieldInfo | ) |
Removes the field value (corresponding to the passed field info) from the message
fieldInfo | the PDMFieldInfo of the field to remove |
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
boolean | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.Boolean.
fieldInfo | the PDMFieldInfo handle |
value | the boolean value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
byte | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.INT8.
fieldInfo | the PDMFieldInfo handle |
value | the byte value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
short | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT8 or PDMFieldType.INT16.
fieldInfo | the PDMFieldInfo handle |
value | the ubyte (as a short) or short value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
int | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT16 or PDMFieldType.INT32.
fieldInfo | the PDMFieldInfo handle |
value | the ushort (as an int) or int value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
long | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT32 or PDMFieldType.INT64.
fieldInfo | the PDMFieldInfo handle |
value | the uint (as a long) or long value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
BigInteger | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT64.
fieldInfo | the PDMFieldInfo handle |
value | the ulong (as a BigInteger) value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
float | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.FLOAT.
fieldInfo | the PDMFieldInfo handle |
value | the float value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
double | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.DOUBLE.
fieldInfo | the PDMFieldInfo handle |
value | the double value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
PDMDecimal | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.DECIMAL.
fieldInfo | the PDMFieldInfo handle |
value | the PDMDecimal value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
PDMTimestamp | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.Timestamp.
fieldInfo | the PDMFieldInfo handle |
value | the PDMTimestamp value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
String | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.FIX_STRING or PDMFieldType.STRING or PDMFieldType.FIX_UNICODE or PDMFieldType.UNICODE.
fieldInfo | the PDMFieldInfo handle |
value | the String value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
PDMMessage | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.MESSAGE.
fieldInfo | the PDMFieldInfo handle |
value | the PDMMessage value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
boolean[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.BOOLEAN_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the boolean array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
byte[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.INT8_ARR or PDMFieldType.BLOB.
fieldInfo | the PDMFieldInfo handle |
value | the byte array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
short[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT8_ARR or PDMFieldType.INT16_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the ubtye (as a short) or short array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
int[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT16_ARR or PDMFieldType.INT32_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the ushort (as an int) or int array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
long[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT32_ARR or PDMFieldType.INT64_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the uint (as a long) or long array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
BigInteger[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.UINT64_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the ulong (as a BigInteger) array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
float[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.FLOAT_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the float array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
double[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.DOUBLE_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the double array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
PDMDecimal[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.DECIMAL_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the PDMDecimal array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
PDMTimestamp[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.TIMESTAMP_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the PDMTimestamp array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
String[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.FIX_STRING_ARR or PDMFieldType.STRING_ARR or PDMFieldType.FIX_UNICODE_ARR or PDMFieldType.UNICODE_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the PDMMessage array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
byte | value[][] | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.BLOB_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the byte[] array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
PDMMessage com.latencybusters.pdm.PDMMessage.setFieldValue | ( | PDMFieldInfo | fieldInfo, |
PDMMessage[] | value | ||
) |
Sets the field value in the message using the PDMFieldInfo handle and should be of type PDMFieldType.MESSAGE_ARR.
fieldInfo | the PDMFieldInfo handle |
value | the PDMMessage array value |
References com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag().
void com.latencybusters.pdm.PDMMessage.setIncludeDefinition | ( | boolean | includeDefinition | ) |
Sets whether the PDMDefinition will be included when serializing to bytes (defaults to false)
includeDefinition |
Referenced by com.latencybusters.pdm.PDMField.setValue().
void com.latencybusters.pdm.PDMMessage.setTryToLoadDefFromCache | ( | boolean | tryToLoadDefFromCache | ) |
Sets whether or not an attempt will be made when parsing a message to try to automatically loaded a PDMDefinition from the PDMDefinitionCache if the one currently set doesn't exactly match the one in the incoming message; the current one will be replaced (defaults to false)
tryToLoadDefFromCache |
void com.latencybusters.pdm.PDMMessage.setUseMsgDefIfNeeded | ( | boolean | useMsgDefIfNeeded | ) |
Sets whether an included PDMDefinition should be parsed and used instead of the previously set PDMDefinition in cases where the two ids, major versions, and minor versions do not match exactly (defaults to false)
useMsgDefIfNeeded |
byte [] com.latencybusters.pdm.PDMMessage.toBytes | ( | ) |
Serializes the message to a new byte array
Referenced by com.latencybusters.pdm.PDMMessage.getMessageLen(), and com.latencybusters.pdm.PDMMessage.toBytes().
byte [] com.latencybusters.pdm.PDMMessage.toBytes | ( | PDMSerializer | ser | ) |
Serializes the message to a new byte array
ser | the PDMSerializer to use |
References com.latencybusters.pdm.PDMMessage.toBytes().
int com.latencybusters.pdm.PDMMessage.toBytes | ( | PDMSerializer | ser, |
byte[] | ba, | ||
int | pos | ||
) |
Serializes the message to an existing byte array at position
ser | the PDMSerializer to use |
ba | the byte array |
pos | the starting position |
References com.latencybusters.pdm.PDMMessage.toBytes().
void com.latencybusters.pdm.PDMMessage.updateOptOrVarFlag | ( | PDMField | field | ) |
Used internally to update the flag if needed to indicate that the message contains at least one optional or variable field
field | the field to check |
References com.latencybusters.pdm.PDMMessage.getMessageLen().
Referenced by com.latencybusters.pdm.PDMMessage.setFieldValue().