A MamaResourcePool is a convenience wrapper to allow easy subscription and management of OpenMAMA related resources
Name | |
---|---|
void | destroy() |
MamaSubscription | createSubscriptionFromUri(string uri, MamaSubscriptionCallback callbacks, object closure) |
MamaSubscription | createSubscriptionFromComponents(string transportName, string sourceName, string topicName, MamaSubscriptionCallback callbacks, object closure) |
MamaSubscription | createSubscriptionFromTopicWithSource(string sourceName, string topicName, MamaSubscriptionCallback callbacks, object closure) |
MamaSubscription | createSubscriptionFromTopic(string topicName, MamaSubscriptionCallback callbacks, object closure) |
MamaTransport | createTransportFromName(string transportName) |
void | destroySubscription(MamaSubscription subscription) |
MamaResourcePool(string name) |
void destroy()
Destroys a MAMA resource pool and all subscriptions, transports etc that were created using it.
MamaSubscription createSubscriptionFromUri(
string uri,
MamaSubscriptionCallback callbacks,
object closure
)
Parameters:
Return: A pointer to a mama subscription object, or NULL on failure
Creates a MAMA Subscription using the given uri which is expected to be a null terminated string in “bridge://transport/source/topic?param=1” format.
MamaSubscription createSubscriptionFromComponents(
string transportName,
string sourceName,
string topicName,
MamaSubscriptionCallback callbacks,
object closure
)
Parameters:
Return: A pointer to a mama subscription object, or NULL on failure
Creates a MAMA Subscription using the given components which are referenced by name.
MamaSubscription createSubscriptionFromTopicWithSource(
string sourceName,
string topicName,
MamaSubscriptionCallback callbacks,
object closure
)
Parameters:
Return: A pointer to a mama subscription object, or NULL on failure
Creates a MAMA Subscription using the given topic and source and the default resource pool’s subscribing transport (default_transport_sub).
MamaSubscription createSubscriptionFromTopic(
string topicName,
MamaSubscriptionCallback callbacks,
object closure
)
Parameters:
Return: A pointer to a mama subscription object, or NULL on failure
Creates a MAMA Subscription using the given topic the default resource pool’s subscribing source (default_source_sub).
MamaTransport createTransportFromName(
string transportName
)
Parameters:
Return: A pointer to a mama subscription object, or NULL on failure
Creates a MAMA Subscription using the given topic the default resource pool’s subscribing source (default_source_sub).
void destroySubscription(
MamaSubscription subscription
)
Parameters:
Destroys the given subscription and removes it from the resource pool asynchronously. There may be further callbacks after calling this function since this event is enqueued on the subscription’s thread, so for any closure related shutdown code, cleanup should be performed in the subscription’s onDestroy callback.
MamaResourcePool(
string name
)
Parameters:
Creates a MAMA resource pool to manage subscription lifecycles on behalf of the application calling it.
Updated on 2023-03-31 at 15:29:33 +0100