ETA Java Sample com.thomsonreuters.upa.examples.niprovider. Fail to set the Refresh message flag

We make use of the NIP sample package which support MarketPrice and MarketByOrder NIP Publishing. We have added a customized model - 128. However, we can't set the message flag to show "REFRESH_COMPLETE" even we already follow the other domain:

public void applyRefreshComplete()

{

flags |= MarketPriceRefreshFlags.REFRESH_COMPLETE;

}

And the dump of the message flag as below: (NO REFRESH_COMPLETE) - the flags only contain HAS_MSG_KEY.

<!-- rwfMajorVer="14" rwfMinorVer="1" -->

<REFRESH domainType="128" streamId="-3" containerType="MAP" flags="0x08 (HAS_MSG_KEY)" groupId="0" State: Open/Ok/None - text: "Item Refresh Completed" dataSize="545">

May I know why we did set the REFRESH_COMPLETE but the dump is missing the REFRESH_COMPLETE flag? Thanks.


Best Answer

  • Hi @Chun Kit Wan

    Make sure that it does call applyRefreshComplete() in encodeMsg().

    The MarketByVolumeRefresh sample code didn't call applyRefreshComplete() in encodeMsg(), which is incorrect.

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.