Name | |
---|---|
MamaResourcePool(final String name) | |
synchronized void | destroy() |
synchronized MamaSubscription | createSubscriptionFromUri(final String uri, final MamaSubscriptionCallback callbacks, final Object closure) |
synchronized MamaSubscription | createSubscriptionFromComponents(final String transportName, final String sourceName, final String topicName, final MamaSubscriptionCallback callbacks, final Object closure) |
synchronized MamaSubscription | createSubscriptionFromTopicWithSource(final String sourceName, final String topicName, final MamaSubscriptionCallback callbacks, final Object closure) |
synchronized MamaSubscription | createSubscriptionFromTopic(final String topicName, final MamaSubscriptionCallback callbacks, final Object closure) |
synchronized MamaTransport | createTransportFromName(final String transportName) |
synchronized void | destroySubscription(final MamaSubscription subscription) |
inline MamaResourcePool(
final String name
)
Parameters:
Creates a MAMA resource pool to manage subscription lifecycles on behalf of the application calling it.
inline synchronized void destroy()
Destroys a MAMA resource pool and all subscriptions, transports etc that were created using it.
inline synchronized MamaSubscription createSubscriptionFromUri(
final String uri,
final MamaSubscriptionCallback callbacks,
final 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.
inline synchronized MamaSubscription createSubscriptionFromComponents(
final String transportName,
final String sourceName,
final String topicName,
final MamaSubscriptionCallback callbacks,
final 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.
inline synchronized MamaSubscription createSubscriptionFromTopicWithSource(
final String sourceName,
final String topicName,
final MamaSubscriptionCallback callbacks,
final 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).
inline synchronized MamaSubscription createSubscriptionFromTopic(
final String topicName,
final MamaSubscriptionCallback callbacks,
final 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).
inline synchronized MamaTransport createTransportFromName(
final 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).
inline synchronized void destroySubscription(
final 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.
Updated on 2023-03-31 at 15:29:43 +0100