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.
virtual void release(const NetFeed &)=0
Base attributes of market data feed.
NetFeedConsumer * consumer() const
const TimeSpan & expirationTime() const
void type(NetFeedType::Enum type)
Assigns feed service type.
void expirationTime(UInt32 expirationTime)
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).
void consumer(NetFeedConsumer &consumer)
Binds the given consumer to the feed.
void sendMessage(const void *message, size_t length, UInt32 timeout)
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.
std::string NetFeedId
The feed identifier.
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.