Name | |
---|---|
MAMAExpDLL mama_status | mamaResourcePool_create(mamaResourcePool * resourcePool, const char * name) |
MAMAExpDLL mama_status | mamaResourcePool_destroy(mamaResourcePool resourcePool) |
MAMAExpDLL mama_status | mamaResourcePool_createSubscriptionFromUri(mamaResourcePool resourcePool, mamaSubscription * subscription, const char * uri, mamaMsgCallbacks callbacks, void * closure) |
MAMAExpDLL mama_status | mamaResourcePool_createSubscriptionFromComponents(mamaResourcePool resourcePool, mamaSubscription * subscription, const char * transportName, const char * sourceName, const char * topicName, mamaMsgCallbacks callbacks, void * closure) |
MAMAExpDLL mama_status | mamaResourcePool_createSubscriptionFromTopicWithSource(mamaResourcePool resourcePool, mamaSubscription * subscription, const char * sourceName, const char * topicName, mamaMsgCallbacks callbacks, void * closure) |
MAMAExpDLL mama_status | mamaResourcePool_createSubscriptionFromTopic(mamaResourcePool resourcePool, mamaSubscription * subscription, const char * topicName, mamaMsgCallbacks callbacks, void * closure) |
MAMAExpDLL mama_status | mamaResourcePool_createTransportFromName(mamaResourcePool resourcePool, mamaTransport * transport, const char * transportName) |
MAMAExpDLL mama_status | mamaResourcePool_destroySubscription(mamaResourcePool resourcePool, mamaSubscription subscription) |
MAMAExpDLL mama_status mamaResourcePool_create(
mamaResourcePool * resourcePool,
const char * name
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Creates a MAMA resource pool to manage subscription lifecycles on behalf of the application calling it.
MAMAExpDLL mama_status mamaResourcePool_destroy(
mamaResourcePool resourcePool
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Destroys a MAMA resource pool and all subscriptions, transports etc that were created using it.
MAMAExpDLL mama_status mamaResourcePool_createSubscriptionFromUri(
mamaResourcePool resourcePool,
mamaSubscription * subscription,
const char * uri,
mamaMsgCallbacks callbacks,
void * closure
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
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.
MAMAExpDLL mama_status mamaResourcePool_createSubscriptionFromComponents(
mamaResourcePool resourcePool,
mamaSubscription * subscription,
const char * transportName,
const char * sourceName,
const char * topicName,
mamaMsgCallbacks callbacks,
void * closure
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Creates a MAMA Subscription using the given components which are referenced by name.
MAMAExpDLL mama_status mamaResourcePool_createSubscriptionFromTopicWithSource(
mamaResourcePool resourcePool,
mamaSubscription * subscription,
const char * sourceName,
const char * topicName,
mamaMsgCallbacks callbacks,
void * closure
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Creates a MAMA Subscription using the given topic and source and the default resource pool’s subscribing transport (default_transport_sub).
MAMAExpDLL mama_status mamaResourcePool_createSubscriptionFromTopic(
mamaResourcePool resourcePool,
mamaSubscription * subscription,
const char * topicName,
mamaMsgCallbacks callbacks,
void * closure
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Creates a MAMA Subscription using the given topic the default resource pool’s subscribing source (default_source_sub).
MAMAExpDLL mama_status mamaResourcePool_createTransportFromName(
mamaResourcePool resourcePool,
mamaTransport * transport,
const char * transportName
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
Creates a MAMA Subscription using the given topic the default resource pool’s subscribing source (default_source_sub).
MAMAExpDLL mama_status mamaResourcePool_destroySubscription(
mamaResourcePool resourcePool,
mamaSubscription subscription
)
Parameters:
Return: A mama_status value to reflect if this operation was successful.
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.
#ifndef MamaResourcePoolH__
#define MamaResourcePoolH__
#if defined(__cplusplus)
extern "C"
{
#endif
#include <mama/config.h>
#include <mama/status.h>
#include <mama/types.h>
#include <mama/subscription.h>
MAMAExpDLL
extern mama_status
mamaResourcePool_create (
mamaResourcePool* resourcePool,
const char* name
);
MAMAExpDLL
extern mama_status
mamaResourcePool_destroy (
mamaResourcePool resourcePool
);
MAMAExpDLL
extern mama_status
mamaResourcePool_createSubscriptionFromUri (
mamaResourcePool resourcePool,
mamaSubscription* subscription,
const char* uri,
mamaMsgCallbacks callbacks,
void* closure
);
MAMAExpDLL
extern mama_status
mamaResourcePool_createSubscriptionFromComponents (
mamaResourcePool resourcePool,
mamaSubscription* subscription,
const char* transportName,
const char* sourceName,
const char* topicName,
mamaMsgCallbacks callbacks,
void* closure
);
MAMAExpDLL
extern mama_status
mamaResourcePool_createSubscriptionFromTopicWithSource (
mamaResourcePool resourcePool,
mamaSubscription* subscription,
const char* sourceName,
const char* topicName,
mamaMsgCallbacks callbacks,
void* closure
);
MAMAExpDLL
extern mama_status
mamaResourcePool_createSubscriptionFromTopic (
mamaResourcePool resourcePool,
mamaSubscription* subscription,
const char* topicName,
mamaMsgCallbacks callbacks,
void* closure
);
MAMAExpDLL
extern mama_status
mamaResourcePool_createTransportFromName (
mamaResourcePool resourcePool,
mamaTransport* transport,
const char* transportName
);
MAMAExpDLL
extern mama_status
mamaResourcePool_destroySubscription (
mamaResourcePool resourcePool,
mamaSubscription subscription
);
#if defined(__cplusplus)
}
#endif
#endif /* MamaResourcePoolH__ */
Updated on 2023-03-31 at 15:29:16 +0100