The MamaPublisher class publishes messages to basic or market data subscriptions depending on the underlying transport
Inherits from Wombat.MamaWrapper, IDisposable
Name | |
---|---|
MamaPublisher() M:Wombat.MamaWrapper.::ctor |
|
void | create(MamaTransport transport, string topic, string source, string root) Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored. |
void | createWithCallbacks(MamaTransport transport, MamaQueue queue, MamaPublisherCallback callback, Object closure, string topic, string source, string root) Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored. |
void | create(MamaTransport transport, string topic, string source) Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored. |
void | create(MamaTransport transport, string topic) Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored. |
void | send(MamaMsg message) Send a message from the specified publisher. |
void | sendWithThrottle(MamaMsg message, MamaSendCompleteCallback callback, object closure) Send a message with the throttle. The lifecycle of the message sent is controlled by the user of the API. The callback indicates when the API is no longer using the message and can be destroyed/reused by the application. |
void | sendFromInbox(MamaInbox inbox, MamaMsg message) Send a p2p message from the specified inbox using the throttle. |
void | sendFromInboxWithThrottle(MamaInbox inbox, MamaMsg message, MamaSendCompleteCallback callback, object closure) Send a p2p message from the specified inbox using the throttle. The lifecycle of the message sent is controlled by the user of the API. The callback indicates when the API is no longer using the message and can be destroyed/reused by the application. |
void | sendReplyToInbox(MamaMsg request, MamaMsg reply) Send a reply in response to a request to an inbox. |
void | destroy() Destroy the publisher. A synonym to the MamaWrapper.Dispose method. |
MamaTransport | getTransport() Get the MamaTransport. The result contains the reusable MamaTransport object of the nativeHandle object. Applications calling this method will receive the same reusable object for repeated calls on same nativeHandle object. |
string | getRoot() Get the name of the transport. |
string | getSource() Get the name of the transport. |
string | getSymbol() Get the name of the transport. |
Name | |
---|---|
virtual override void | Dispose(bool disposing, bool destroyNativeHandle =true) The actual implementation of Dispose - called by both the Dispose method and the finalizer. |
virtual override MamaStatus.mamaStatus | DestroyNativePeer() Implements the destruction of the underlying peer object MamaWrapper.DestroyNativePeer |
Public Functions inherited from Wombat.MamaWrapper
Name | |
---|---|
void | setNativeHandle(IntPtr nHandle) Sets the native handle of the native peer object. Should only be used by subclasses and in the same assembly. |
Protected Functions inherited from Wombat.MamaWrapper
Name | |
---|---|
MamaWrapper() Constructs a new wrapper object but doesn’t create it. If the object is not explicitly disposed it will remain registered for finalization and will attempt the destroy the native peer object when finalized. |
|
MamaWrapper(IntPtr nativeHandle) Constructs a managed wrapper from an existing native peer. The peer object will not be automatically finalized |
|
virtual void | OnDispose() |
Protected Attributes inherited from Wombat.MamaWrapper
Name | |
---|---|
IntPtr | nativeHandle the handle to the native peer object |
MamaPublisher()
M:Wombat.MamaWrapper.::ctor
void create(
MamaTransport transport,
string topic,
string source,
string root
)
Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored.
Parameters:
void createWithCallbacks(
MamaTransport transport,
MamaQueue queue,
MamaPublisherCallback callback,
Object closure,
string topic,
string source,
string root
)
Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored.
Parameters:
void create(
MamaTransport transport,
string topic,
string source
)
Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored.
Parameters:
void create(
MamaTransport transport,
string topic
)
Create a mama publisher for the corresponding transport. If the transport is a marketdata transport, as opposed to a “basic” transport, the topic corresponds to the symbol. For a basic transport, the source and root get ignored.
Parameters:
void send(
MamaMsg message
)
Send a message from the specified publisher.
Parameters:
void sendWithThrottle(
MamaMsg message,
MamaSendCompleteCallback callback,
object closure
)
Send a message with the throttle. The lifecycle of the message sent is controlled by the user of the API. The callback indicates when the API is no longer using the message and can be destroyed/reused by the application.
Parameters:
void sendFromInbox(
MamaInbox inbox,
MamaMsg message
)
Send a p2p message from the specified inbox using the throttle.
Parameters:
void sendFromInboxWithThrottle(
MamaInbox inbox,
MamaMsg message,
MamaSendCompleteCallback callback,
object closure
)
Send a p2p message from the specified inbox using the throttle. The lifecycle of the message sent is controlled by the user of the API. The callback indicates when the API is no longer using the message and can be destroyed/reused by the application.
Parameters:
void sendReplyToInbox(
MamaMsg request,
MamaMsg reply
)
Send a reply in response to a request to an inbox.
Parameters:
void destroy()
Destroy the publisher. A synonym to the MamaWrapper.Dispose method.
MamaTransport getTransport()
Get the MamaTransport. The result contains the reusable MamaTransport object of the nativeHandle object. Applications calling this method will receive the same reusable object for repeated calls on same nativeHandle object.
string getRoot()
Get the name of the transport.
string getSource()
Get the name of the transport.
string getSymbol()
Get the name of the transport.
virtual override void Dispose(
bool disposing,
bool destroyNativeHandle =true
)
The actual implementation of Dispose - called by both the Dispose method and the finalizer.
Parameters:
Reimplements: Wombat::MamaWrapper::Dispose
virtual override MamaStatus.mamaStatus DestroyNativePeer()
Implements the destruction of the underlying peer object MamaWrapper.DestroyNativePeer
Return: MAMA Status code
Reimplements: Wombat::MamaWrapper::DestroyNativePeer
Updated on 2023-03-31 at 15:29:32 +0100