OnixS C++ CME MDP Premium Market Data Handler 5.9.0
API Documentation
Loading...
Searching...
No Matches
FeedConsumer.h
Go to the documentation of this file.
1// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2//
3// This software owned by Onix Solutions Limited [OnixS] and is
4// protected by copyright law and international copyright treaties.
5//
6// Access to and use of the software is governed by the terms of the applicable
7// OnixS Software Services Agreement (the Agreement) and Customer end user license
8// agreements granting a non-assignable, non-transferable and non-exclusive license
9// to use the software for it's own data processing purposes under the terms defined
10// in the Agreement.
11//
12// Except as otherwise granted within the terms of the Agreement, copying or
13// reproduction of any part of this source code or associated reference material
14// to any other location for further reproduction or redistribution, and any
15// amendments to this copyright notice, are expressly prohibited.
16//
17// Any reproduction or redistribution for sale or hiring of the Software not in
18// accordance with the terms of the Agreement is a violation of copyright law.
19//
20
21#pragma once
22
24
26
27// A bit of forward declarations.
28
31
36{
37public:
44 virtual bool tryAcquire() = 0;
45
47 virtual void release() = 0;
48
55 virtual void onPacket(const NetPacket&) = 0;
56
64 virtual void onTimeout(const NetFeed&) = 0;
65
74 virtual void onExpiration(const NetFeed&) = 0;
75
82 virtual void onFailure(const NetFeed&, const Char*) = 0;
83
84protected:
87
90 virtual ~NetFeedConsumer() {}
91
92private:
94
95 NetFeedConsumer& operator=(const NetFeedConsumer&);
96};
97
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:67
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
Definition Bootstrap.h:48
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:68
#define ONIXS_CMEMDH_EXPORTED
Definition Compiler.h:171
Represents an interface through which the Feed Engine pushes market data received for the feeds.
virtual ~NetFeedConsumer()
Lifetime of the instance is not maintained through the interface of the given class.
NetFeedConsumer()
Protected construction for descendants.
virtual bool tryAcquire()=0
Tries to gain access to the given consumer.
virtual void onExpiration(const NetFeed &)=0
Invoked by the feed engine machinery when the feed associated with the given consumer has reached its...
virtual void onPacket(const NetPacket &)=0
Invoked by the feed engine machinery when a packet is received for the feed associated with the given...
virtual void release()=0
Releases previously acquired consumer.
virtual void onTimeout(const NetFeed &)=0
Invoked by the feed engine machinery when any packet wasn't received for the feed associated with the...
virtual void onFailure(const NetFeed &, const Char *)=0
Invoked by the feed engine machinery when it experienced an issue while receiving data for the feed a...
Base attributes of market data feed.
Definition Feed.h:55
char Char
Character type alias.
Definition String.h:36