dxFeed .Net API  5.13.0
dxFeed .Net API library intended to provide market data access for DX clients
Data Structures | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
com.dxfeed.api.DXFeedLastingEventsCollector Class Reference

Class provides methods for collecting and storing lasting events. More...

Inheritance diagram for com.dxfeed.api.DXFeedLastingEventsCollector:
[legend]
Collaboration diagram for com.dxfeed.api.DXFeedLastingEventsCollector:
[legend]

Data Structures

class  EventsCollection
 
class  EventStorage
 

Public Member Functions

 DXFeedLastingEventsCollector ()
 Default constructor. More...
 
bool HasEvent< E > (object symbol)
 Checks collector contains lasting event for specified symbol and event of type E. More...
 
GetEvent< E > (object symbol)
 Returns lasting event for specified symbol and event of type E. If collector haven't such event null will be returned. More...
 
void OnCandle< TB, TE > (TB buf)
 On Candle events received. More...
 
void OnGreeks< TB, TE > (TB buf)
 On Greeks event received. More...
 
void OnOrder< TB, TE > (TB buf)
 On Order event received. More...
 
void OnProfile< TB, TE > (TB buf)
 On Profile event received. More...
 
void OnQuote< TB, TE > (TB buf)
 On Quote event received More...
 
void OnSeries< TB, TE > (TB buf)
 On Series event received. More...
 
void OnSpreadOrder< TB, TE > (TB buf)
 On SpreadOrder event received. More...
 
void OnFundamental< TB, TE > (TB buf)
 On Fundamental event received. More...
 
void OnTheoPrice< TB, TE > (TB buf)
 On TheoPrice event received. More...
 
void OnTimeAndSale< TB, TE > (TB buf)
 On Time and Sale event received. More...
 
void OnTrade< TB, TE > (TB buf)
 On Trade event received. More...
 
void OnTradeETH< TB, TE > (TB buf)
 On TradeETH event received. More...
 
void OnUnderlying< TB, TE > (TB buf)
 On Underlying event received. More...
 
void OnConfiguration< TB, TE > (TB buf)
 On Configuration event received. More...
 

Protected Member Functions

void AddEvent< E > (object symbol, E eventData)
 

Private Member Functions

string GetSymbolKey (object symbolObj)
 

Private Attributes

ConcurrentDictionary< string, EventsCollectionlastSymbols = new ConcurrentDictionary<string, EventsCollection>()
 

Detailed Description

Class provides methods for collecting and storing lasting events.

Constructor & Destructor Documentation

◆ DXFeedLastingEventsCollector()

com.dxfeed.api.DXFeedLastingEventsCollector.DXFeedLastingEventsCollector ( )
inline

Default constructor.

Member Function Documentation

◆ AddEvent< E >()

void com.dxfeed.api.DXFeedLastingEventsCollector.AddEvent< E > ( object  symbol,
eventData 
)
inlineprotected
Type Constraints
E :class 
E :IDxEventType 

◆ GetEvent< E >()

E com.dxfeed.api.DXFeedLastingEventsCollector.GetEvent< E > ( object  symbol)
inline

Returns lasting event for specified symbol and event of type E. If collector haven't such event null will be returned.

Template Parameters
EEvent type.
Parameters
symbolThe market symbol.
Returns
Lasting event for specified symbol and event of type E if such contains in collector; otherwise returns null.
Type Constraints
E :class 
E :IDxEventType 

◆ GetSymbolKey()

string com.dxfeed.api.DXFeedLastingEventsCollector.GetSymbolKey ( object  symbolObj)
inlineprivate

◆ HasEvent< E >()

bool com.dxfeed.api.DXFeedLastingEventsCollector.HasEvent< E > ( object  symbol)
inline

Checks collector contains lasting event for specified symbol and event of type E.

Template Parameters
EEvent type.
Parameters
symbolThe market symbol.
Returns
True if collector contains lasting event for specified symbol and event of type E; otherwise returns false.
Type Constraints
E :class 
E :IDxEventType 

◆ OnCandle< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnCandle< TB, TE > ( TB  buf)
inline

On Candle events received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxCandleListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxCandle 

◆ OnConfiguration< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnConfiguration< TB, TE > ( TB  buf)
inline

On Configuration event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxConfigurationListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxConfiguration 

◆ OnFundamental< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnFundamental< TB, TE > ( TB  buf)
inline

On Fundamental event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxFundamentalListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxSummary 

◆ OnGreeks< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnGreeks< TB, TE > ( TB  buf)
inline

On Greeks event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxGreeksListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxGreeks 

◆ OnOrder< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnOrder< TB, TE > ( TB  buf)
inline

On Order event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxOrderListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxOrder 

◆ OnProfile< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnProfile< TB, TE > ( TB  buf)
inline

On Profile event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxProfileListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxProfile 

◆ OnQuote< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnQuote< TB, TE > ( TB  buf)
inline

On Quote event received

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxQuoteListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxQuote 

◆ OnSeries< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnSeries< TB, TE > ( TB  buf)
inline

On Series event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxSeriesListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxSeries 

◆ OnSpreadOrder< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnSpreadOrder< TB, TE > ( TB  buf)
inline

On SpreadOrder event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxSpreadOrderListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxSpreadOrder 

◆ OnTheoPrice< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnTheoPrice< TB, TE > ( TB  buf)
inline

On TheoPrice event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxTheoPriceListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxTheoPrice 

◆ OnTimeAndSale< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnTimeAndSale< TB, TE > ( TB  buf)
inline

On Time and Sale event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxTimeAndSaleListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxTimeAndSale 

◆ OnTrade< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnTrade< TB, TE > ( TB  buf)
inline

On Trade event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxTradeListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxTrade 

◆ OnTradeETH< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnTradeETH< TB, TE > ( TB  buf)
inline

On TradeETH event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxTradeETHListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxTradeETH 

◆ OnUnderlying< TB, TE >()

void com.dxfeed.api.DXFeedLastingEventsCollector.OnUnderlying< TB, TE > ( TB  buf)
inline

On Underlying event received.

Template Parameters
TBEvent buffer type.
TEEvent type.
Parameters
bufEvent buffer object.

Implements com.dxfeed.api.IDxUnderlyingListener.

Type Constraints
TB :IDxEventBuf<TE> 
TE :IDxUnderlying 

Field Documentation

◆ lastSymbols

ConcurrentDictionary<string, EventsCollection> com.dxfeed.api.DXFeedLastingEventsCollector.lastSymbols = new ConcurrentDictionary<string, EventsCollection>()
private

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