#include <MamaTransport.h>
Name | |
---|---|
MamaTransport() | |
virtual | ~MamaTransport() |
MamaTransport(mamaTransport cTransport) | |
void | create(const char * name, mamaBridge bridgeImpl) |
void | setName(const char * name) |
const char * | getName() const |
const char * | getMiddleware() const |
double | getOutboundThrottle(mamaThrottleInstance instance =MAMA_THROTTLE_DEFAULT) const |
void | setOutboundThrottle(double outboundThrottle, mamaThrottleInstance instance =MAMA_THROTTLE_DEFAULT) |
void | setTransportTopicCallback(MamaTransportTopicEventCallback * callback) |
void | getTransportCallbackQueue(MamaQueue * queue) |
MamaQueue * | getTransportCallbackQueue() |
void | setTransportCallback(MamaTransportCallback * callback) |
void | setSymbolMap(const MamaSymbolMap * mapper) |
const MamaSymbolMap * | getSymbolMap() const |
void | setDescription(const char * description) |
const char * | getDescription() const |
MamaConnection * | findConnection(const char * IpAddress, uint16_t port) |
virtual void | getAllConnections(MamaConnection **& list, uint32_t & len) |
virtual void | freeAllConnections(MamaConnection ** list, uint32_t len) |
virtual void | getAllServerConnections(MamaServerConnection **& list, uint32_t & len) |
virtual void | freeAllServerConnections(MamaServerConnection ** list, uint32_t & len) |
void | setInvokeQualityForAllSubscs(bool invokeQualityForAllSubscs) |
bool | getInvokeQualityForAllSubscs() const |
mamaQuality | getQuality() const |
void | requestConflation() const |
void | requestEndConflation() const |
MamaQueue * | getTransportCallbackQueue() const |
void | setTransportCallbackQueue(MamaQueue * queue) |
mamaTransport | getCValue() |
const mamaTransport | getCValue() const |
void * | getNativeTransport(int index) |
void | disableRefresh(bool disable) |
Name | |
---|---|
MamaTransportImpl * | mPimpl |
class Wombat::MamaTransport;
The MamaTransport class provides market data functionality.
MamaTransport()
Construct a MamaTransport. Call create to create the transport.
virtual ~MamaTransport()
MamaTransport(
mamaTransport cTransport
)
Construct a MamaTransport that wraps a mamaTransport from the C API. Mama uses this internally. C++ Applications should create C++ MamaTransport objects through the no-argument constructor, and call MamaTransport::create().
MamaTransport objects created with this method do not deallocate or destroy the underlying c Transport because that responsibility lies with the creator.
void create(
const char * name,
mamaBridge bridgeImpl
)
Parameters:
Create a transport. Platform specific parameters are read from the properties file. The parameters are dependent on the underlying messaging transport.
void setName(
const char * name
)
Parameters:
set the transport name. The name string is copied by the object.
const char * getName() const
get the transport name.
const char * getMiddleware() const
get the middleware name.
double getOutboundThrottle(
mamaThrottleInstance instance =MAMA_THROTTLE_DEFAULT
) const
Return: The throttle rate.
Return the outbound throttle rate in messages/second.
void setOutboundThrottle(
double outboundThrottle,
mamaThrottleInstance instance =MAMA_THROTTLE_DEFAULT
)
Parameters:
Set the throttle rate for outbound message. This rate controls the rate at which methods sent with sendWithThrottle (void) are sent. A value of 0.0 disables throttling.
void setTransportTopicCallback(
MamaTransportTopicEventCallback * callback
)
Set the transport topic callback
void getTransportCallbackQueue(
MamaQueue * queue
)
Set the queue that the app provided for transport callbacks.
MamaQueue * getTransportCallbackQueue()
Get the queue that the app provided for transport callbacks.
void setTransportCallback(
MamaTransportCallback * callback
)
Set the transport callback.
void setSymbolMap(
const MamaSymbolMap * mapper
)
Parameters:
Set the symbology mapping class.
const MamaSymbolMap * getSymbolMap() const
Return the symbology mapping class.
void setDescription(
const char * description
)
Parameters:
Set the description for the transport. The description string is copied by the object.
const char * getDescription() const
Return: const char* The transport description.
Return the description string for the transport. Do not alter or free the string returned by this method.
MamaConnection * findConnection(
const char * IpAddress,
uint16_t port
)
virtual void getAllConnections(
MamaConnection **& list,
uint32_t & len
)
virtual void freeAllConnections(
MamaConnection ** list,
uint32_t len
)
virtual void getAllServerConnections(
MamaServerConnection **& list,
uint32_t & len
)
virtual void freeAllServerConnections(
MamaServerConnection ** list,
uint32_t & len
)
void setInvokeQualityForAllSubscs(
bool invokeQualityForAllSubscs
)
Parameters:
Set whether to invoke the quality callback for all subscriptions whenever a data quality event occurs (the default), or whether to invoke the quality callback only when data subsequently arrives for a subscription.
If set to true, an onQuality callback will be invoked for a subscription whenever a data quality event occurs on the transport, even in between updates for that description. If set to false, the onQuality callback will not be called when the data quality event occurs on the transport. However, it will still be invoked when an update arrives for the subscription.
bool getInvokeQualityForAllSubscs() const
Return: Whether transport has been set to invoke quality callback for all subscriptions
Get whether the transport has been set to invoke the quality callback for all subscriptions whenever a data quality event occurs.
mamaQuality getQuality() const
Return: The Quality of the transport
Get the data quality for the transport.
Currently only supported for the Tibco RV middleware. Returns OK for all other middlewares.
void requestConflation() const
Request conflation for the transport.
Currently only supported for WMW.
void requestEndConflation() const
Request an end to conflation for the transport.
Currently only supported for WMW.
MamaQueue * getTransportCallbackQueue() const
Get the queue for the transport callbacks
void setTransportCallbackQueue(
MamaQueue * queue
)
Set the queue for the transport callbacks
mamaTransport getCValue()
const mamaTransport getCValue() const
void * getNativeTransport(
int index
)
Return the underlying native transport. Applications should avoid this method if possible as it may result in non-portable, middleware specific code. Callers must cast the nativeTport to the appropriate type.
Note: this method returns the underlying C construct not a C++ object.
void disableRefresh(
bool disable
)
Disable refreshing of subscriptions on this transport.
MamaTransportImpl * mPimpl;
Updated on 2023-03-31 at 15:29:26 +0100