|
TIBCO FTL®
|
This file defines destination objects and various associated calls. More...
Macros | |
| #define | TIB_ADVISORY_DEST "_advisory_dest" |
| special advisory destination that destination subscribers can subscribe to receive advisories. More... | |
| #define | TIB_DEST_BROWSER_PROPERTY_STRING_DURABLE_NAME "com.tibco.ftl.client.browser.durable.name" |
| Durable name property; string. More... | |
| #define | TIB_LOGGING_DEST "_logging_dest" |
| special logging destination that dest subscribers can subscribe to receive logging stream. More... | |
| #define | TIB_MONITORING_DEST "_monitoring_dest" |
| special monitoring destination that destination subscribers can subscribe to receive monitoring stream. More... | |
Functions | |
| TIB_API tibBrowser | tibRealm_CreateDestBrowser (tibEx e, tibRealm realm, const char *dest, tibProperties properties) |
| Create a Destination Browser object. More... | |
| TIB_API tibDestPublisher | tibRealm_CreateDestPublisher (tibEx e, tibRealm realm, const char *default_dest, tibProperties properties) |
| Create a destination Publisher object. More... | |
| TIB_API tibDestSubscriber | tibRealm_CreateDestSubscriber (tibEx e, tibRealm realm, const char *dest, tibProperties properties) |
| Create a destination subscriber object. More... | |
| TIB_API tibMap | tibRealm_CreateMapOnDest (tibEx e, tibRealm realm, const char *dest, tibProperties properties) |
| Create a map object. A map is essentially a key value store. More... | |
| TIB_API void | tibRealm_RemoveMapOnDest (tibEx e, tibRealm realm, const char *dest, tibProperties properties) |
| Remove a map object. A map is essentially a key value store. More... | |
| TIB_API void | tibRealm_RewindDest (tibEx e, tibRealm realm, const char *dest, tibProperties properties) |
| Rewind either the durable on the destination or the queue. More... | |
| TIB_API void | tibRealm_UnsubscribeDest (tibEx e, tibRealm realm, const char *dest, const char *durableName, tibProperties properties) |
| Unsubscribe a durable from destination, this essentailly destroys a durable on a destination on the persistence service side. More... | |
This file defines destination objects and various associated calls.
Destinations are of three different types
Destination Sytanx.
The following restrictions apply to destination strings: UTF8 character encoding
| #define TIB_ADVISORY_DEST "_advisory_dest" |
special advisory destination that destination subscribers can subscribe to receive advisories.
Application programs can create a subscriber on this advisory destination to receive asynchronous events that the FTL library generates. see advisory.h
| #define TIB_DEST_BROWSER_PROPERTY_STRING_DURABLE_NAME "com.tibco.ftl.client.browser.durable.name" |
Durable name property; string.
When creating a browser on a destination see tibRealm_CreateDestBrowser, this durable name property is required for browsing messages on the durable, since there could be many durables on given destination.
| #define TIB_LOGGING_DEST "_logging_dest" |
special logging destination that dest subscribers can subscribe to receive logging stream.
Application programs can create a subscriber on this logging destination to receive logging events that are generated FTL services and applications.
| #define TIB_MONITORING_DEST "_monitoring_dest" |
special monitoring destination that destination subscribers can subscribe to receive monitoring stream.
Application programs can create a subscriber on this monitoring destination to receive monitoring events that are generated by FTL services and applications
| TIB_API tibBrowser tibRealm_CreateDestBrowser | ( | tibEx | e, |
| tibRealm | realm, | ||
| const char * | dest, | ||
| tibProperties | properties | ||
| ) |
Create a Destination Browser object.
Destination browsers can be created on queues (e.g Q:queue_name) or topics (topic_name)
Applications use browser objects to inspect and, optionally, delete the contents of a destination.
If the destination browser is on a topic then TIB_DEST_BROWSER_PROPERTY_STRING_DURABLE_NAME is required to be specified in the properties object.
NOTE:
See tibBrowser_Next and tibBrowser_DeleteMessage.
| e | The exception object captures information about failures. |
| realm | The realm object is the source of configuration information about the application, destinations, stores. |
| dest | The destination can be either a topic or a queue name |
| properties | Optional. NULL to omit.Properties: |
| TIB_API tibDestPublisher tibRealm_CreateDestPublisher | ( | tibEx | e, |
| tibRealm | realm, | ||
| const char * | default_dest, | ||
| tibProperties | properties | ||
| ) |
Create a destination Publisher object.
A Destination Publisher is used to publish messages to a destination specified by the dest argument, This dest argument can be
Destination publishers can be of two types
Statically bound destination publishers
Unbound destination publishers
| e | The exception object captures information about failures. |
| realm | The realm object. |
| default_dest | The destination name for statically bound publisher or NULL for unbound publisher. |
| properties | The properties object. The following properties are possible TIB_DEST_PUBLISHER_PROPERTY_BOOL_RELEASE_MSGS_TO_SEND TIB_DEST_PUBLISHER_PROPERTY_DOUBLE_PERSISTENCE_RETRY_DURATION TIB_DEST_PUBLISHER_PROPERTY_DOUBLE_PERSISTENCE_CLOSE_LINGER TIB_DEST_PUBLISHER_PROPERTY_STRING_LABEL TIB_DEST_PUBLISHER_PROPERTY_INT_SEND_POLICY TIB_DEST_PUBLISHER_PROPERTY_INT_MAX_BATCH_COUNT |
| TIB_API tibDestSubscriber tibRealm_CreateDestSubscriber | ( | tibEx | e, |
| tibRealm | realm, | ||
| const char * | dest, | ||
| tibProperties | properties | ||
| ) |
Create a destination subscriber object.
Applications use destination subscriber objects to register interest on specific destinations to receive a stream of messages.
A destination subscriber does not receive messages until you add it to an event queue.
Destinations cannot be a wildcard, only specific destination names are allowed. destination names can be either a topic or a queue name (queue name have to be prefixed with Q: e.g Q:foo1)
NOTE:
| e | The exception object captures information about failures. |
| realm | The realm object. |
| dest | The destination name. |
| properties | The properties object. |
TIB_DEST_SUBSCRIBER_PROPERTY_STRING_LABEL TIB_DEST_SUBSCRIBER_PROPERTY_STRING_DURABLE_NAME TIB_DEST_SUBSCRIBER_PROPERTY_BOOL_EXPLICIT_ACK TIB_DEST_SUBSCRIBER_PROPERTY_INT_DURABLE_TYPE (Shared, Standard, LastValue) TIB_DEST_SUBSCRIBER_PROPERTY_BOOL_RELEASE_MSGS_TO_CALLBACK TIB_DEST_SUBSCRIBER_PROPERTY_DOUBLE_PERSISTENCE_RETRY_DURATION TIB_DEST_SUBSCRIBER_PROPERTY_LONG_PREFETCH_SIZE TIB_DEST_SUBSCRIBER_PROPERTY_BOOL_NOLOCAL_MESSAGE_DELIVERY TIB_DEST_SUBSCRIBER_PROPERTY_STRING_MATCH_FILTER
| TIB_API tibMap tibRealm_CreateMapOnDest | ( | tibEx | e, |
| tibRealm | realm, | ||
| const char * | dest, | ||
| tibProperties | properties | ||
| ) |
Create a map object. A map is essentially a key value store.
Map objects with the same map name represent the same map within the persistence store.
If the store does not already contain the named map, this call creates the map.
NOTE:
| e | The exception object captures information about failures. |
| realm | The realm object is the source of configuration information about the application |
| dest | on which to create the map object. (dest name have to have a prefix of M:) |
| properties | Optional. NULL to omit.Properties: |
| TIB_API void tibRealm_RemoveMapOnDest | ( | tibEx | e, |
| tibRealm | realm, | ||
| const char * | dest, | ||
| tibProperties | properties | ||
| ) |
Remove a map object. A map is essentially a key value store.
Removes a map object that was created on the destination.
Map objects with the same map name represent the same map within the persistence store.
NOTE:
| e | The exception object captures information about failures. |
| realm | The realm object is the source of configuration information about the application |
| dest | on which the map object needs to be removed. (dest name have to have a prefix of M:<>) |
| properties | Optional. NULL to omit.Properties: |
| TIB_API void tibRealm_RewindDest | ( | tibEx | e, |
| tibRealm | realm, | ||
| const char * | dest, | ||
| tibProperties | properties | ||
| ) |
Rewind either the durable on the destination or the queue.
| e | The exception object captures information about failures. |
| realm | The realm object. |
| dest | The destination name. [ Can be foo1 (for topic) or Q:foo1 (for queue) ] |
| properties | The properties object. Properties: |
| TIB_API void tibRealm_UnsubscribeDest | ( | tibEx | e, |
| tibRealm | realm, | ||
| const char * | dest, | ||
| const char * | durableName, | ||
| tibProperties | properties | ||
| ) |
Unsubscribe a durable from destination, this essentailly destroys a durable on a destination on the persistence service side.
Destroying a durable and removes it from the store.
NOTE:
If one client destroys a durable while other clients have subscribers to it, subsequent behavior is undefined.
| e | The exception object captures information about failures. |
| realm | The call destroys a dynamic durable in this realm. |
| dest | The destination name. |
| durableName | The name of the durable to destroy. |
| properties | The properties object. |