question

Upvotes
Accepted
1 0 0 0

Can the returned refreshMsg be encapsulated into a java entity class?

Can this returned message body be directly received by a Java entity class and encapsulated into an entity class?

This is a code snippet. If it is encapsulated into an entity class, which class is it? It contains the following FieldList, FieldEntry, etc. balabala

public void onRefreshMsg(RefreshMsg refreshMsg, OmmConsumerEvent event) {
    log.error("监听的消息:"+refreshMsg.toString());
    messageFuture.complete(refreshMsg.toString());
}


RefreshMsg

streamId="5"

domain="MarketPrice Domain"

solicited

RefreshComplete

state="Open / Ok / None / ''"

itemGroup="00 04"

permissionData="03 01 01 65 81 c0"

name="ARNO.BO"

nameType="1"

serviceId="257"

serviceName="ELEKTRON_DD"

Payload dataType="FieldList"

FieldList FieldListNum="38" DictionaryId="1"

FieldEntry fid="1" name="PROD_PERM" dataType="UInt" value="6581"

FieldEntry fid="2" name="RDNDISPLAY" dataType="UInt" value="116"

FieldEntry fid="3" name="DSPLY_NAME" dataType="Rmtes" value="ARNOLD-XT"

FieldEntry fid="4" name="RDN_EXCHID" dataType="Enum" value="145"

FieldEntry fid="5" name="TIMACT" dataType="Time" value="07:27:40:000:000:000"

FieldEntry fid="6" name="TRDPRC_1" dataType="Real" value="39.03"

FieldEntry fid="7" name="TRDPRC_2" dataType="Real" value="39.03"

FieldEntry fid="8" name="TRDPRC_3" dataType="Real" value="37.51"

FieldEntry fid="9" name="TRDPRC_4" dataType="Real" value="(blank data)"

FieldEntry fid="10" name="TRDPRC_5" dataType="Real" value="(blank data)"

FieldEntry fid="11" name="NETCHNG_1" dataType="Real" value="0.76"

FieldEntry fid="12" name="HIGH_1" dataType="Real" value="39.03"

FieldEntry fid="13" name="LOW_1" dataType="Real" value="37.51"

FieldEntry fid="14" name="PRCTCK_1" dataType="Enum" value="1"

FieldEntry fid="15" name="CURRENCY" dataType="Enum" value="356"

FieldEntry fid="16" name="TRADE_DATE" dataType="Date" value="08 APR 2024"

FieldEntry fid="18" name="TRDTIM_1" dataType="Time" value="06:45:00:000:000:000"

FieldEntry fid="19" name="OPEN_PRC" dataType="Real" value="37.51"

FieldEntry fid="21" name="HST_CLOSE" dataType="Real" value="38.27"

FieldEntry fid="22" name="BID" dataType="Real" value="39.03"

FieldEntry fid="25" name="ASK" dataType="Real" value="39.03"

FieldEntry fid="28" name="NEWS" dataType="Rmtes" value=" "

FieldEntry fid="29" name="NEWS_TIME" dataType="Time" value="(blank data)"

FieldEntry fid="30" name="BIDSIZE" dataType="Real" value="4024.0"

FieldEntry fid="31" name="ASKSIZE" dataType="Real" value="503.0"

FieldEntry fid="32" name="ACVOL_1" dataType="Real" value="20843.0"

FieldEntry fid="34" name="EARNINGS" dataType="Real" value="0.6301"

FieldEntry fid="35" name="YIELD" dataType="Real" value="0.00"

FieldEntry fid="36" name="PERATIO" dataType="Real" value="60.74"

FieldEntry fid="38" name="DIVPAYDATE" dataType="Date" value="(blank data)"

FieldEntry fid="39" name="EXDIVDATE" dataType="Date" value="(blank data)"

FieldEntry fid="53" name="TRD_UNITS" dataType="Enum" value="2"

FieldEntry fid="55" name="LOT_SIZE" dataType="Real" value="1.0"

FieldEntry fid="56" name="PCTCHNG" dataType="Real" value="1.99"

FieldEntry fid="60" name="CLOSE_BID" dataType="Real" value="38.27"

FieldEntry fid="61" name="CLOSE_ASK" dataType="Real" value="0.00"

FieldEntry fid="71" name="DIVIDEND" dataType="Real" value="0.00"

FieldEntry fid="75" name="UPLIMIT" dataType="Real" value="39.03"

FieldEntry fid="76" name="LOLIMIT" dataType="Real" value="37.51"

FieldEntry fid="77" name="NUM_MOVES" dataType="Real" value="25.0"

FieldEntry fid="78" name="OFFCL_CODE" dataType="Rmtes" value="ARNOLD"

FieldEntry fid="79" name="HSTCLSDATE" dataType="Date" value="05 APR 2024"

FieldEntry fid="90" name="YRHIGH" dataType="Real" value="47.6"

FieldEntry fid="91" name="YRLOW" dataType="Real" value="16.9"

FieldEntry fid="100" name="TURNOVER" dataType="Real" value="809.0"

FieldEntry fid="105" name="BCKGRNDPAG" dataType="Rmtes" value="****"

FieldEntry fid="110" name="YCHIGH_IND" dataType="Enum" value="(blank data)"

FieldEntry fid="111" name="YCLOW_IND" dataType="Enum" value="(blank data)"

FieldEntry fid="118" name="PRC_QL_CD" dataType="Enum" value="0"

FieldEntry fid="178" name="TRDVOL_1" dataType="Real" value="274.0"

FieldEntry fid="198" name="LOT_SIZE_A" dataType="Real" value="1.0"

FieldEntry fid="259" name="RECORDTYPE" dataType="UInt" value="113"

FieldEntry fid="289" name="ASK_VOLUME" dataType="Real" value="20843.0"

FieldEntry fid="291" name="NO_BIDMMKR" dataType="Real" value="10.0"

FieldEntry fid="292" name="NO_ASKMMKR" dataType="Real" value="2.0"

FieldEntry fid="350" name="YRHIGHDAT" dataType="Date" value="20 FEB 2024"

FieldEntry fid="351" name="YRLOWDAT" dataType="Date" value="01 DEC 2023"

FieldEntry fid="372" name="IRGPRC" dataType="Real" value="38.27"

FieldEntry fid="373" name="IRGVOL" dataType="Real" value="11634.0"

FieldEntry fid="379" name="SALTIM" dataType="Time" value="06:45:00:000:000:000"

FieldEntry fid="380" name="TNOVER_SC" dataType="Enum" value="4"

FieldEntry fid="728" name="BCAST_REF" dataType="Rmtes" value="ARNO.BO"

FieldEntry fid="869" name="OFF_CD_IND" dataType="Enum" value="33"

FieldEntry fid="975" name="ACT_FLAG1" dataType="Rmtes" value="A"

FieldEntry fid="976" name="ACT_FLAG2" dataType="Rmtes" value="A"

FieldEntry fid="977" name="ACT_FLAG3" dataType="Rmtes" value="A"

FieldEntry fid="978" name="ACT_FLAG4" dataType="Rmtes" value="(blank data)"

FieldEntry fid="979" name="ACT_FLAG5" dataType="Rmtes" value="(blank data)"

FieldEntry fid="996" name="GEN_VAL1" dataType="Real" value="39.03"

FieldEntry fid="999" name="GEN_VAL4" dataType="Real" value="509.0"

FieldEntry fid="1000" name="GV1_TEXT" dataType="Rmtes" value="IndPrc"

FieldEntry fid="1003" name="GV4_TEXT" dataType="Rmtes" value="IndVol"

FieldEntry fid="1028" name="GV1_DATE" dataType="Date" value="05 APR 2024"

FieldEntry fid="1030" name="GEN_VAL6" dataType="Real" value="38.81"

FieldEntry fid="1035" name="GV5_TEXT" dataType="Rmtes" value="CALLAU"

FieldEntry fid="1051" name="GV2_DATE" dataType="Date" value="(blank data)"

FieldEntry fid="1056" name="OFFC_CODE2" dataType="Rmtes" value="INE185K01036"

FieldEntry fid="1057" name="NOMINAL" dataType="Real" value="1000.0"

FieldEntry fid="1067" name="EXCHTIM" dataType="Time" value="07:27:40:000:000:000"

FieldEntry fid="1080" name="PREF_DISP" dataType="UInt" value="7140"

FieldEntry fid="1406" name="ISS_TP_FLG" dataType="Rmtes" value="3"

FieldEntry fid="1465" name="ADJUST_CLS" dataType="Real" value="38.27"

FieldEntry fid="1496" name="WEIGHTING" dataType="Real" value="38.814"

FieldEntry fid="1709" name="RDN_EXCHD2" dataType="Enum" value="145"

FieldEntry fid="2406" name="WEIGHTING3" dataType="Real" value="1000.0"

FieldEntry fid="3131" name="IRGFID" dataType="Real" value="18546.0"

FieldEntry fid="3132" name="IRGVAL" dataType="Real" value="0"

FieldEntry fid="3263" name="PREV_DISP" dataType="UInt" value="4798"

FieldEntry fid="3265" name="52WK_HIGH" dataType="Real" value="47.6"

FieldEntry fid="3266" name="52WK_LOW" dataType="Real" value="16.9"

FieldEntry fid="3372" name="OFF_CLOSE" dataType="Real" value="(blank data)"

FieldEntry fid="3386" name="QUOTE_DATE" dataType="Date" value="08 APR 2024"

FieldEntry fid="3404" name="VWAP" dataType="Real" value="38.814"

FieldEntry fid="3422" name="PROV_SYMB" dataType="Rmtes" value="537069"

FieldEntry fid="3448" name="52W_HDAT" dataType="Date" value="20 FEB 2024"

FieldEntry fid="3449" name="52W_HIND" dataType="Enum" value="(blank data)"

FieldEntry fid="3450" name="52W_LDAT" dataType="Date" value="01 DEC 2023"

FieldEntry fid="3451" name="52W_LIND" dataType="Enum" value="(blank data)"

FieldEntry fid="3580" name="BID_ASK_DT" dataType="Date" value="05 APR 2024"

FieldEntry fid="3655" name="ISIN_CODE" dataType="Rmtes" value="INE185K01036"

FieldEntry fid="3675" name="LST_TRD_PR" dataType="Real" value="38.27"

FieldEntry fid="3694" name="MNEMONIC" dataType="Rmtes" value="537069"

FieldEntry fid="3823" name="VMA_5D" dataType="Real" value="16792.0"

FieldEntry fid="3824" name="VMA_30D" dataType="Real" value="43951.0"

FieldEntry fid="3863" name="CLS_BIDSIZ" dataType="Real" value="18546.0"

FieldEntry fid="3865" name="CLS_ASKSIZ" dataType="Real" value="0"

FieldEntry fid="3912" name="IND_AUC" dataType="Real" value="39.03"

FieldEntry fid="3913" name="IND_AUCVOL" dataType="Real" value="509.0"

FieldEntry fid="3984" name="TRD_TYPE" dataType="Rmtes" value="A"

FieldEntry fid="4058" name="EXCHCODE" dataType="Rmtes" value="537069"

FieldEntry fid="4204" name="IPO_PRC" dataType="Real" value="(blank data)"

FieldEntry fid="4313" name="VWAP_EXCH" dataType="Real" value="38.81"

FieldEntry fid="4465" name="TRD_IND_1" dataType="Rmtes" value="0"

FieldEntry fid="5302" name="REF_PRICE" dataType="Real" value="(blank data)"

FieldEntry fid="5357" name="CONTEXT_ID" dataType="Real" value="1289.0"

FieldEntry fid="6210" name="PRC_TICK" dataType="Real" value="0.01"

FieldEntry fid="6242" name="VWAP_VOL" dataType="Real" value="20843.0"

FieldEntry fid="6401" name="DDS_DSO_ID" dataType="UInt" value="4134"

FieldEntry fid="6480" name="SPS_SP_RIC" dataType="Ascii" value=".[SPSBSE01L1"

FieldEntry fid="6544" name="NO_BIDORD1" dataType="UInt" value="10"

FieldEntry fid="6554" name="NO_ASKORD1" dataType="UInt" value="2"

FieldEntry fid="6614" name="TRD_STATUS" dataType="Enum" value="1"

FieldEntry fid="6762" name="OFF_CLS_DT" dataType="Date" value="(blank data)"

FieldEntry fid="6767" name="PRV_LST_DT" dataType="Date" value="05 APR 2024"

FieldEntry fid="6835" name="DELBY_DT" dataType="Date" value="(blank data)"

FieldEntry fid="6908" name="BLKTRDVOL" dataType="Int" value="(blank data)"

FieldEntry fid="6983" name="VMA_21D" dataType="Int" value="50166"

FieldEntry fid="7038" name="THEO_LTVOL" dataType="Int" value="274"

FieldEntry fid="8127" name="OAUC_VMA21" dataType="Real" value="292.0"

FieldEntry fid="8128" name="OAUC_VMA30" dataType="Real" value="205.0"

FieldEntry fid="8129" name="OAUC_VMA5D" dataType="Real" value="0.00"

FieldEntry fid="8300" name="SEE_RIC" dataType="Ascii" value="(blank data)"

FieldEntry fid="8311" name="BCASTREF32" dataType="Ascii" value="ARNO.BO"

FieldEntry fid="8493" name="XMIC_CODE" dataType="Rmtes" value="XBOM"

FieldEntry fid="8568" name="MKT_TIER" dataType="Rmtes" value="XT"

FieldEntry fid="8635" name="RCS_AS_CL2" dataType="Rmtes" value="(blank data)"

FieldEntry fid="8647" name="PERIOD_CD2" dataType="Rmtes" value="1"

FieldEntry fid="8745" name="SRC_SYMB" dataType="Rmtes" value="537069"

FieldEntry fid="8927" name="INST_PHASE" dataType="Enum" value="2"

FieldEntry fid="8949" name="REF_PRC_TP" dataType="Enum" value="38"

FieldEntry fid="9210" name="BLK_DATE" dataType="Date" value="(blank data)"

FieldEntry fid="9350" name="NDEL_ST_DT" dataType="Date" value="(blank data)"

FieldEntry fid="9351" name="NDEL_EN_DT" dataType="Date" value="(blank data)"

FieldEntry fid="9938" name="ADJUST_CL2" dataType="Real" value="38.27"

FieldEntry fid="10590" name="EL_MAR_RT" dataType="Real" value="0.00"

FieldEntry fid="10594" name="VAR_MAR_RT" dataType="Real" value="1.0"

FieldEntry fid="12840" name="ELIGBL_TRD" dataType="Enum" value="1"

FieldEntry fid="13406" name="EXCHCD_TP" dataType="Enum" value="5"

FieldEntry fid="13432" name="TR_TRD_FLG" dataType="Enum" value="3"

FieldEntry fid="13438" name="SETT_RUL" dataType="Enum" value="4"

FieldEntry fid="14265" name="QUOTIM_NS" dataType="Time" value="07:27:40:272:000:000"

FieldEntry fid="14266" name="SALTIM_NS" dataType="Time" value="06:45:00:000:000:000"

FieldEntry fid="14273" name="BLKTIM_NS" dataType="Time" value="(blank data)"

FieldEntry fid="32482" name="ELG_ACVOL" dataType="UInt" value="(blank data)"

FieldEntry fid="32488" name="VEH_PERMID" dataType="UInt" value="(blank data)"

FieldEntry fid="32741" name="TRNOVR_UNS" dataType="Real" value="809000.0"

FieldEntry fid="32743" name="ACVOL_UNS" dataType="UInt" value="20843"

FieldEntry fid="32744" name="AMT_OS_UNS" dataType="UInt" value="30075000"

FieldListEnd

PayloadEnd

RefreshMsgEnd

#technologyjavarefinitiv-realtime-optimised
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
22.8k 60 14 21

Hi @guoshuai,

There is no standard object in Java which can contain the contents of an OMM message. You can either create your object using primitives and a HashMap for the contents of the FieldList, or keep the string representation of message - the way you show in the code.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.