OnixS C++ CME MDP Premium Market Data Handler  5.8.3
API Documentation
NetFeed Class Reference

#include <OnixS/CME/MDH/Feed.h>

Public Member Functions

 NetFeed ()
 
 ~NetFeed ()
 
const NetFeedIdid () const
 
void id (const NetFeedId &id)
 
NetFeedType::Enum type () const
 
void type (NetFeedType::Enum type)
 
NetFeedRole::Enum role () const
 
void role (NetFeedRole::Enum role)
 
NetFeedConnectionconnection ()
 
const NetFeedConnectionconnection () const
 
const TimeSpanexpirationTime () const
 
void expirationTime (UInt32 expirationTime)
 
const TimeSpanreceiveTimeout () const
 
void receiveTimeout (UInt32 timeInterval)
 
NetFeedState::Enum state () const
 
void listener (NetFeedListener &listener)
 
NetFeedConsumerconsumer () const
 
void consumer (NetFeedConsumer &consumer)
 
void link (NetFeedLink &link)
 
bool connect (UInt32)
 
bool disconnect ()
 
void sendMessage (const void *message, size_t length, UInt32 timeout)
 

Detailed Description

Definition at line 54 of file Feed.h.

Constructor & Destructor Documentation

NetFeed ( )
inline

Initializes the instance.

Definition at line 58 of file Feed.h.

~NetFeed ( )
inline

Definition at line 66 of file Feed.h.

Member Function Documentation

bool connect ( UInt32  )

Bring the given instance to the connected state.

Feed must be fully configured and a valid instance of the NetFeedLink bound to the feed. Otherwise, an exception will be thrown.

Returns 'true' if the feed was connected. 'False' is returned if the feed wasn't in the disconnected state at the moment of invocation.

NetFeedConnection& connection ( )
inline

Connection attributes (overload for modifications).

Definition at line 111 of file Feed.h.

const NetFeedConnection& connection ( ) const
inline

Connection attributes (read-only access).

Definition at line 117 of file Feed.h.

NetFeedConsumer* consumer ( ) const
inline

An instance of data consumer associated with the given feed if available.

Definition at line 174 of file Feed.h.

void consumer ( NetFeedConsumer consumer)
inline

Binds the given consumer to the feed.

Definition at line 180 of file Feed.h.

bool disconnect ( )

Instructs the feed to stop delivering packets to the associated consumer.

Returns 'true' if the feed was disconnected. 'False' is returned if the feed wasn't previously connected of was in the process of disconnecting.

const TimeSpan& expirationTime ( ) const
inline

Life time for the feed.

If defined, the given time defines time period during which the feed may receive the incoming data and deliver it to the associate consumer. After that, the feed stop receiving the data while staying in the connected state.

Definition at line 129 of file Feed.h.

void expirationTime ( UInt32  expirationTime)
inline

Defines life time for the feed in seconds.

The given attribute defines time period during which the feed may receive the incoming data and deliver it to the associate consumer. After that, the feed stop receiving the data while staying in the connected state.

Definition at line 141 of file Feed.h.

const NetFeedId& id ( ) const
inline

Identifier associated with feed.

Definition at line 75 of file Feed.h.

void id ( const NetFeedId id)
inline

Assigns identifier.

Definition at line 81 of file Feed.h.

void link ( NetFeedLink link)
inline

Associates the given link with the feed.

Definition at line 190 of file Feed.h.

void listener ( NetFeedListener listener)
inline

Binds the given listener to the feed.

Definition at line 165 of file Feed.h.

const TimeSpan& receiveTimeout ( ) const
inline

Maximal time interval between two packets transmitted.

Definition at line 147 of file Feed.h.

void receiveTimeout ( UInt32  timeInterval)
inline

Updates time interval between two packets transmitted.

Definition at line 153 of file Feed.h.

NetFeedRole::Enum role ( ) const
inline

Role in a service (primary, secondary).

Definition at line 99 of file Feed.h.

void role ( NetFeedRole::Enum  role)
inline

Assigns feed service role.

Definition at line 105 of file Feed.h.

void sendMessage ( const void *  message,
size_t  length,
UInt32  timeout 
)
inline

Send the given message to the source from which the feed receives data and delivers to the associated consumer.

Exceptions
theexception if the operation is not supported or the given message can't be delivered to the destination.

Definition at line 228 of file Feed.h.

NetFeedState::Enum state ( ) const
inline

Indicates current state.

Definition at line 159 of file Feed.h.

NetFeedType::Enum type ( ) const
inline

Type of service (incremental, instrument, etc).

Definition at line 87 of file Feed.h.

void type ( NetFeedType::Enum  type)
inline

Assigns feed service type.

Definition at line 93 of file Feed.h.


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