#include <OnixS/CME/ConflatedUDP/FeedConsumer.h>
Public Member Functions | |
virtual bool | tryAcquire ()=0 |
virtual void | release ()=0 |
virtual void | onPacket (const NetPacket &)=0 |
virtual void | onTimeout (const NetFeed &)=0 |
virtual void | onExpiration (const NetFeed &)=0 |
virtual void | onFailure (const NetFeed &, const Char *)=0 |
Protected Member Functions | |
NetFeedConsumer () | |
virtual | ~NetFeedConsumer () |
Represents an interface through which the Feed Engine pushes market data received for the feeds.
Definition at line 35 of file FeedConsumer.h.
|
inlineprotected |
Protected construction for descendants.
Definition at line 46 of file FeedConsumer.h.
|
inlineprotectedvirtual |
Lifetime of the instance is not maintained through the interface of the given class.
Definition at line 52 of file FeedConsumer.h.
|
pure virtual |
Invoked by the feed engine machinery when the feed associated with the given consumer has reached its expiration time. The expiration time for the feed is defined by the 'expirationTime' member.
The given member must be invoked only when the consumer was already successfully acquired.
Invoked by the feed engine machinery when it experienced an issue while receiving data for the feed associated with the given consumer.
The given member must be invoked only when the consumer was already successfully acquired.
|
pure virtual |
Invoked by the feed engine machinery when a packet is received for the feed associated with the given consumer.
The given member must be invoked only when the consumer was already successfully acquired.
|
pure virtual |
Invoked by the feed engine machinery when any packet wasn't received for the feed associated with the given consumer for a predefined amount of time.
The given member must be invoked only when the consumer was already successfully acquired.
|
pure virtual |
Releases previously acquired consumer.
|
pure virtual |
Tries to gain access to the given consumer.
Before invoking any other member, the consumer must be successfully acquired. This is because the consumer may be busy while handling the other event from the other source.