71 link_->release(*
this);
131 return expirationTime_;
149 return receiveTimeout_;
155 receiveTimeout_ =
TimeSpan(0, 0, timeInterval, 0);
161 return AtomicState::read(state_);
232 link_->send(*
this, message, length, timeout);
236 typedef Atomic<NetFeedState::Enum> AtomicState;
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_EXPORTED
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED_STRUCT_DECL(typeName)
#define ONIXS_CMEMDH_NULLPTR
Network feed connection attributes.
Represents an interface through which the Feed Engine pushes market data received for the feeds.
Abstraction of a link used by the NetFeed instances to cover transportation layer.
virtual void release(const NetFeed &)=0
Releases the link used by the given feed.
Base attributes of market data feed.
NetFeedConsumer * consumer() const
An instance of data consumer associated with the given feed if available.
const TimeSpan & expirationTime() const
Life time for the feed.
void type(NetFeedType::Enum type)
Assigns feed service type.
bool disconnect()
Instructs the feed to stop delivering packets to the associated consumer.
void expirationTime(UInt32 expirationTime)
Defines life time for the feed in seconds.
void role(NetFeedRole::Enum role)
Assigns feed service role.
void receiveTimeout(UInt32 timeInterval)
Updates time interval between two packets transmitted.
void id(const NetFeedId &id)
Assigns identifier.
const NetFeedConnection & connection() const
Connection attributes (read-only access).
void link(NetFeedLink &link)
Associates the given link with the feed.
NetFeedRole::Enum role() const
Role in a service (primary, secondary).
bool connect(UInt32)
Bring the given instance to the connected state.
void consumer(NetFeedConsumer &consumer)
Binds the given consumer to the feed.
void sendMessage(const void *message, size_t length, UInt32 timeout)
Send the given message to the source from which the feed receives data and delivers to the associated...
NetFeedConnection & connection()
Connection attributes (overload for modifications).
NetFeedState::Enum state() const
Indicates current state.
NetFeedType::Enum type() const
Type of service (incremental, instrument, etc).
const NetFeedId & id() const
Identifier associated with feed.
NetFeed()
Initializes the instance.
const TimeSpan & receiveTimeout() const
Maximal time interval between two packets transmitted.
void listener(NetFeedListener &listener)
Binds the given listener to the feed.
Represents time interval.
std::string NetFeedId
The feed identifier.
Collection of the events raised by the NetFeed at various stages of its lifetime.
Enum
List of known feed roles.
Defines possible states for the feeds.
Enum
Defines possible states for the feeds.
Enum
Feed types based on type of market data service.