Encoding fragmented genericMsg
When I start encoding a RefreshMsg I dont know whether the message will be fragmented
so I cannot call refreshMsg.applyRefreshComplete() when encoding the header.
If on completing the message encoding I know that this is the last message fragment so I can call
encodeIterator.setRefreshComplete().
But I have a similar issue with genericMsg.
I cant call GenericMsg.applyMessageComplete() because I dont know whether this will be the last fragment.
But EncodeIterator does not have a setMessageComplete() method.
So How can I set messageComplete on a generic msg?
Best Answer
-
Beside the GenericMsg.applyMessageComplete(), the application can also set message complete on the generic message via the following statement
GenericMsg.flags(GenericMsgFlags.MESSAGE_COMPLETE);
0
Answers
-
Could you please clarify my understanding about your question? You would like to know how to set the Generic Message complete flag on the last fragment?
0 -
Setting the GenericMsg.flags only has an effect before calling GenericMsg.encodeInit(EncodeIterator,size). But at that point I do not know whether this will be the last fragment of a generic message. I only know that after I finish the encoding and can check that the payload has been completely encoded. If I am encoding a refresh message I can calI EncodeIterator.setRefreshComplete() which will set the refresh complete flag for an already encoded message. What I need is a similar method for generic messages, I suggest EncodeIterator.setMessageComplete().
0 -
I have create the service cloud case 04967973 for process your enhancement request.
0 -
I too have run into this issue but with C++ UPA API.
RSSL_API RsslRet rsslSetRefreshCompleteFlag (RsslEncodeIterator *pIter)
is available to set the RSSL_RFMF_REFRESH_COMPLETE flag on an encoded RsslRefreshMsg buffer but there is no equivalent to set the RSSL_GNMF_MESSAGE_COMPLETE flag on an encoded RsslGenericMsg Buffer.
I am using UPA 7.6.1L1( I have checked 8.0.0L1 and it is not available in that version either).
0 -
Hi @kim.valentine,
The EncodeIterator also has a method 'setRefreshCompleteFlag()' to indicate Refresh Complete.
Is this what you're looking for?
0 -
No,
setRefreshComplete is for Refresh messages only.
I need a similar method for Generic messages.
0 -
I have created the case: 04974333 for tracking your request on UPA C.
0 -
So as not to mis-lead others, this is NOT the correct answer.
GenericMsg.flags(GenericMsgFlags.MESSAGE_COMPLETE);
needs to be set BEFORE encoding starts for it to take effect.
What is required is a method that will set the flag on the encoded buffer AFTER encoding is complete.
This is available for Refresh msgs but not for Generic msgs.
So the correct answer is that it is not possible until the missing function/method is provided by TR.
0 -
This feature has been added to ETA Java 3.1.0. You can download it from Elektron SDK - Java 1.1.0 at this link.
0 -
Hi @Gordon Hunn
This feature has been added to ETA C 3.1.0 as well. You can download it from Elektron SDK - C/C++ 1.1.0 at this link.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛