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
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 251 ETA
- 555 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 916 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛