dxFeed .Net API  5.8.0
dxFeed .Net API library intended to provide market data access for DX clients
Public Member Functions | Properties | Private Member Functions | Private Attributes
com.dxfeed.ipf.live.InstrumentProfileUpdater Class Reference

This class tracks changes in instrument profile snapshot and filter bulk data. It is possible while live streaming connection was broken. Reconnection accompanied with repeated receiving of whole snapshot. This class allow to send user only changed data, i.e without duplicates. More...

Public Member Functions

ICollection< InstrumentProfileUpdate (IList< InstrumentProfile > instrumentProfiles)
 Update buffered collection and returns only changed data. More...
 

Properties

ICollection< InstrumentProfileInstrumentProfiles [get]
 Get full instrument profiles collection. More...
 

Private Member Functions

int GetInstrumentProfileKey (InstrumentProfile ip)
 Make a instrument profile key for hashing inside this class. More...
 

Private Attributes

object updaterLocker = new object()
 
Dictionary< int, InstrumentProfiledictionaryByKey = null
 
List< InstrumentProfilebuffer = null
 

Detailed Description

This class tracks changes in instrument profile snapshot and filter bulk data. It is possible while live streaming connection was broken. Reconnection accompanied with repeated receiving of whole snapshot. This class allow to send user only changed data, i.e without duplicates.

Member Function Documentation

◆ GetInstrumentProfileKey()

int com.dxfeed.ipf.live.InstrumentProfileUpdater.GetInstrumentProfileKey ( InstrumentProfile  ip)
inlineprivate

Make a instrument profile key for hashing inside this class.

Parameters
ip
Returns

◆ Update()

ICollection<InstrumentProfile> com.dxfeed.ipf.live.InstrumentProfileUpdater.Update ( IList< InstrumentProfile instrumentProfiles)
inline

Update buffered collection and returns only changed data.

Parameters
instrumentProfilesUpdatet data.
Returns
Changed data.

Field Documentation

◆ buffer

List<InstrumentProfile> com.dxfeed.ipf.live.InstrumentProfileUpdater.buffer = null
private

◆ dictionaryByKey

Dictionary<int, InstrumentProfile> com.dxfeed.ipf.live.InstrumentProfileUpdater.dictionaryByKey = null
private

◆ updaterLocker

object com.dxfeed.ipf.live.InstrumentProfileUpdater.updaterLocker = new object()
private

Property Documentation

◆ InstrumentProfiles

ICollection<InstrumentProfile> com.dxfeed.ipf.live.InstrumentProfileUpdater.InstrumentProfiles
get

Get full instrument profiles collection.


The documentation for this class was generated from the following file: