OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
OcilibCApiDirectPath
OCILIB supports Oracle Advanced Queues features
Let's Oracle talk about this features !
Oracle Streams AQ provides database-integrated message queuing functionality. It is built on top of Oracle Streams and leverages the functions of Oracle Database so that messages can be stored persistently, propagated between queues on different computers and databases, and transmitted using Oracle Net Services and HTTP(S). Because Oracle Streams AQ is implemented in database tables, all operational benefits of high availability, scalability, and reliability are also applicable to queue data. Standard database features such as recovery, restart, and security are supported by Oracle Streams AQ. You can use database development and management tools such as Oracle Enterprise Manager to monitor queues. Like other database tables, queue tables can be imported and exported.
OCILIB provides a (nearly) full C implementation of Advanced Queues available in Oracle OCI and proposes the following data types :
OCILIB support AQ messages notification with Oracle Client 10gR2 or above
Note that the only AQ features not supported yet by OCILIB are :
OCILIB provides as well a C API to administrate queues and queue tables initially reserved to PL/SQL and Java (wrappers around PL/SQL calls). This API, based on internal PL/SQL calls wrapping the DBMS_AQADM packages procedures, allow the following actions :
Note that the user connected to the database needs particular privileges to manipulate or administrate queues (See Oracle Streams - Advanced Queuing User's Guide for more information on these privileges)
Functions | |
OCI_SYM_PUBLIC OCI_Msg *OCI_API | OCI_MsgCreate (OCI_TypeInfo *typinf) |
Create a message object based on the given payload type. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgFree (OCI_Msg *msg) |
Free a message object. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgReset (OCI_Msg *msg) |
Reset all attributes of a message object. | |
OCI_SYM_PUBLIC OCI_Object *OCI_API | OCI_MsgGetObject (OCI_Msg *msg) |
Get the object payload of the given message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetObject (OCI_Msg *msg, OCI_Object *obj) |
Set the object payload of the given message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgGetRaw (OCI_Msg *msg, void *raw, unsigned int *size) |
Get the RAW payload of the given message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetRaw (OCI_Msg *msg, const void *raw, unsigned int size) |
Set the RAW payload of the given message. | |
OCI_SYM_PUBLIC int OCI_API | OCI_MsgGetAttemptCount (OCI_Msg *msg) |
Return the number of attempts that have been made to dequeue the message. | |
OCI_SYM_PUBLIC int OCI_API | OCI_MsgGetEnqueueDelay (OCI_Msg *msg) |
Return the number of seconds that a message is delayed for dequeuing. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetEnqueueDelay (OCI_Msg *msg, int value) |
set the number of seconds to delay the enqueued message | |
OCI_SYM_PUBLIC OCI_Date *OCI_API | OCI_MsgGetEnqueueTime (OCI_Msg *msg) |
return the time the message was enqueued | |
OCI_SYM_PUBLIC int OCI_API | OCI_MsgGetExpiration (OCI_Msg *msg) |
Return the duration that the message is available for dequeuing. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetExpiration (OCI_Msg *msg, int value) |
set the duration that the message is available for dequeuing | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_MsgGetState (OCI_Msg *msg) |
Return the state of the message at the time of the dequeue. | |
OCI_SYM_PUBLIC int OCI_API | OCI_MsgGetPriority (OCI_Msg *msg) |
Return the priority of the message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetPriority (OCI_Msg *msg, int value) |
Set the priority of the message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgGetID (OCI_Msg *msg, void *id, unsigned int *len) |
Return the ID of the message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgGetOriginalID (OCI_Msg *msg, void *id, unsigned int *len) |
Return the original ID of the message in the last queue that generated this message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetOriginalID (OCI_Msg *msg, const void *id, unsigned int len) |
Set the original ID of the message in the last queue that generated this message. | |
OCI_SYM_PUBLIC OCI_Agent *OCI_API | OCI_MsgGetSender (OCI_Msg *msg) |
Return the original sender of a message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetSender (OCI_Msg *msg, OCI_Agent *sender) |
Set the original sender of a message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetConsumers (OCI_Msg *msg, OCI_Agent **consumers, unsigned int count) |
Set the recipient list of a message to enqueue. | |
OCI_SYM_PUBLIC const otext *OCI_API | OCI_MsgGetCorrelation (OCI_Msg *msg) |
Get the correlation identifier of the message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetCorrelation (OCI_Msg *msg, const otext *correlation) |
set the correlation identifier of the message | |
OCI_SYM_PUBLIC const otext *OCI_API | OCI_MsgGetExceptionQueue (OCI_Msg *msg) |
Get the Exception queue name of the message. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_MsgSetExceptionQueue (OCI_Msg *msg, const otext *queue) |
Set the name of the queue to which the message is moved to if it cannot be processed successfully. | |
OCI_SYM_PUBLIC OCI_Enqueue *OCI_API | OCI_EnqueueCreate (OCI_TypeInfo *typinf, const otext *name) |
Create a Enqueue object for the given queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_EnqueueFree (OCI_Enqueue *enqueue) |
Free a Enqueue object. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_EnqueuePut (OCI_Enqueue *enqueue, OCI_Msg *msg) |
Enqueue a message on the queue associated to the Enqueue object. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_EnqueueSetSequenceDeviation (OCI_Enqueue *enqueue, unsigned int sequence) |
Set the enqueuing sequence of messages to put in the queue. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_EnqueueGetSequenceDeviation (OCI_Enqueue *enqueue) |
Return the sequence deviation of messages to enqueue to the queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_EnqueueSetVisibility (OCI_Enqueue *enqueue, unsigned int visibility) |
Set whether the new message is enqueued as part of the current transaction. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_EnqueueGetVisibility (OCI_Enqueue *enqueue) |
Get the enqueuing/locking behavior. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_EnqueueSetRelativeMsgID (OCI_Enqueue *enqueue, const void *id, unsigned int len) |
Set a message identifier to use for enqueuing messages using a sequence deviation. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_EnqueueGetRelativeMsgID (OCI_Enqueue *enqueue, void *id, unsigned int *len) |
Get the current associated message identifier used for enqueuing messages using a sequence deviation. | |
OCI_SYM_PUBLIC OCI_Dequeue *OCI_API | OCI_DequeueCreate (OCI_TypeInfo *typinf, const otext *name) |
Create a Dequeue object for the given queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueFree (OCI_Dequeue *dequeue) |
Free a Dequeue object. | |
OCI_SYM_PUBLIC OCI_Msg *OCI_API | OCI_DequeueGet (OCI_Dequeue *dequeue) |
Dequeue messages from the given queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSubscribe (OCI_Dequeue *dequeue, unsigned int port, unsigned int timeout, POCI_NOTIFY_AQ callback) |
Subscribe for asynchronous messages notifications. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueUnsubscribe (OCI_Dequeue *dequeue) |
Unsubscribe for asynchronous messages notifications. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetConsumer (OCI_Dequeue *dequeue, const otext *consumer) |
Set the current consumer name to retrieve message for. | |
OCI_SYM_PUBLIC const otext *OCI_API | OCI_DequeueGetConsumer (OCI_Dequeue *dequeue) |
Get the current consumer name associated with the dequeuing process. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetCorrelation (OCI_Dequeue *dequeue, const otext *pattern) |
set the correlation identifier of the message to be dequeued | |
OCI_SYM_PUBLIC const otext *OCI_API | OCI_DequeueGetCorrelation (OCI_Dequeue *dequeue) |
Get the correlation identifier of the message to be dequeued. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetRelativeMsgID (OCI_Dequeue *dequeue, const void *id, unsigned int len) |
Set the message identifier of the message to be dequeued. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueGetRelativeMsgID (OCI_Dequeue *dequeue, void *id, unsigned int *len) |
Get the message identifier of the message to be dequeued. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetVisibility (OCI_Dequeue *dequeue, unsigned int visibility) |
Set whether the new message is dequeued as part of the current transaction. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_DequeueGetVisibility (OCI_Dequeue *dequeue) |
Get the dequeuing/locking behavior. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetMode (OCI_Dequeue *dequeue, unsigned int mode) |
Set the dequeuing/locking behavior. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_DequeueGetMode (OCI_Dequeue *dequeue) |
Get the dequeuing/locking behavior. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetNavigation (OCI_Dequeue *dequeue, unsigned int position) |
Set the position of messages to be retrieved. | |
OCI_SYM_PUBLIC unsigned int OCI_API | OCI_DequeueGetNavigation (OCI_Dequeue *dequeue) |
Return the navigation position of messages to retrieve from the queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetWaitTime (OCI_Dequeue *dequeue, int timeout) |
set the time that OCIDequeueGet() waits for messages if no messages are currently available | |
OCI_SYM_PUBLIC int OCI_API | OCI_DequeueGetWaitTime (OCI_Dequeue *dequeue) |
Return the time that OCIDequeueGet() waits for messages if no messages are currently available. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_DequeueSetAgentList (OCI_Dequeue *dequeue, OCI_Agent **consumers, unsigned int count) |
Set the Agent list to listen to message for. | |
OCI_SYM_PUBLIC OCI_Agent *OCI_API | OCI_DequeueListen (OCI_Dequeue *dequeue, int timeout) |
Listen for messages that match any recipient of the associated Agent list. | |
OCI_SYM_PUBLIC OCI_Agent *OCI_API | OCI_AgentCreate (OCI_Connection *con, const otext *name, const otext *address) |
Create an AQ agent object. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_AgentFree (OCI_Agent *agent) |
Free an AQ agent object. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_AgentSetName (OCI_Agent *agent, const otext *name) |
Set the given AQ agent name. | |
OCI_SYM_PUBLIC const otext *OCI_API | OCI_AgentGetName (OCI_Agent *agent) |
Get the given AQ agent name. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_AgentSetAddress (OCI_Agent *agent, const otext *address) |
Set the given AQ agent address. | |
OCI_SYM_PUBLIC const otext *OCI_API | OCI_AgentGetAddress (OCI_Agent *agent) |
Get the given AQ agent address. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueCreate (OCI_Connection *con, const otext *queue_name, const otext *queue_table, unsigned int queue_type, unsigned int max_retries, unsigned int retry_delay, unsigned int retention_time, boolean dependency_tracking, const otext *comment) |
Create a queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueAlter (OCI_Connection *con, const otext *queue_name, unsigned int max_retries, unsigned int retry_delay, unsigned int retention_time, const otext *comment) |
Alter the given queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueDrop (OCI_Connection *con, const otext *queue_name) |
Drop the given queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueStart (OCI_Connection *con, const otext *queue_name, boolean enqueue, boolean dequeue) |
Start the given queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueStop (OCI_Connection *con, const otext *queue_name, boolean enqueue, boolean dequeue, boolean wait) |
Stop enqueuing or dequeuing or both on the given queue. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueTableCreate (OCI_Connection *con, const otext *queue_table, const otext *queue_payload_type, const otext *storage_clause, const otext *sort_list, boolean multiple_consumers, unsigned int message_grouping, const otext *comment, unsigned int primary_instance, unsigned int secondary_instance, const otext *compatible) |
Create a queue table for messages of the given type. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueTableAlter (OCI_Connection *con, const otext *queue_table, const otext *comment, unsigned int primary_instance, unsigned int secondary_instance) |
Alter the given queue table. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueTableDrop (OCI_Connection *con, const otext *queue_table, boolean force) |
Drop the given queue table. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueTablePurge (OCI_Connection *con, const otext *queue_table, const otext *purge_condition, boolean block, unsigned int delivery_mode) |
Purge messages from the given queue table. | |
OCI_SYM_PUBLIC boolean OCI_API | OCI_QueueTableMigrate (OCI_Connection *con, const otext *queue_table, const otext *compatible) |
Migrate a queue table from one version to another. | |
OCI_SYM_PUBLIC OCI_Msg *OCI_API OCI_MsgCreate | ( | OCI_TypeInfo * | typinf | ) |
#include <api.h>
Create a message object based on the given payload type.
typinf | - Type info handle |
Referenced by ocilib::Message::Message().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgFree | ( | OCI_Msg * | msg | ) |
#include <api.h>
Free a message object.
msg | - Message handle |
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgReset | ( | OCI_Msg * | msg | ) |
#include <api.h>
Reset all attributes of a message object.
msg | - Message handle |
Referenced by ocilib::Message::Reset().
OCI_SYM_PUBLIC OCI_Object *OCI_API OCI_MsgGetObject | ( | OCI_Msg * | msg | ) |
#include <api.h>
Get the object payload of the given message.
msg | - Message handle |
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetObject | ( | OCI_Msg * | msg, |
OCI_Object * | obj | ||
) |
#include <api.h>
Set the object payload of the given message.
msg | - Message handle |
obj | - Object handle |
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgGetRaw | ( | OCI_Msg * | msg, |
void * | raw, | ||
unsigned int * | size | ||
) |
#include <api.h>
Get the RAW payload of the given message.
msg | - Message handle |
raw | - Input buffer |
size | - Input buffer maximum size |
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetRaw | ( | OCI_Msg * | msg, |
const void * | raw, | ||
unsigned int | size | ||
) |
#include <api.h>
Set the RAW payload of the given message.
msg | - Message handle |
raw | - Raw data |
size | - Raw data size |
OCI_SYM_PUBLIC int OCI_API OCI_MsgGetAttemptCount | ( | OCI_Msg * | msg | ) |
#include <api.h>
Return the number of attempts that have been made to dequeue the message.
msg | - Message handle |
Referenced by ocilib::Message::GetAttemptCount().
OCI_SYM_PUBLIC int OCI_API OCI_MsgGetEnqueueDelay | ( | OCI_Msg * | msg | ) |
#include <api.h>
Return the number of seconds that a message is delayed for dequeuing.
msg | - Message handle |
Referenced by ocilib::Message::GetEnqueueDelay().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetEnqueueDelay | ( | OCI_Msg * | msg, |
int | value | ||
) |
#include <api.h>
set the number of seconds to delay the enqueued message
msg | - Message handle |
value | - Delay in seconds |
Referenced by ocilib::Message::SetEnqueueDelay().
#include <api.h>
return the time the message was enqueued
msg | - Message handle |
Referenced by ocilib::Message::GetEnqueueTime().
OCI_SYM_PUBLIC int OCI_API OCI_MsgGetExpiration | ( | OCI_Msg * | msg | ) |
#include <api.h>
Return the duration that the message is available for dequeuing.
msg | - Message handle |
Referenced by ocilib::Message::GetExpiration().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetExpiration | ( | OCI_Msg * | msg, |
int | value | ||
) |
#include <api.h>
set the duration that the message is available for dequeuing
msg | - Message handle |
value | - duration in seconds |
Referenced by ocilib::Message::SetExpiration().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_MsgGetState | ( | OCI_Msg * | msg | ) |
#include <api.h>
Return the state of the message at the time of the dequeue.
msg | - Message handle |
Referenced by ocilib::Message::GetState().
OCI_SYM_PUBLIC int OCI_API OCI_MsgGetPriority | ( | OCI_Msg * | msg | ) |
#include <api.h>
Return the priority of the message.
msg | - Message handle |
Referenced by ocilib::Message::GetPriority().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetPriority | ( | OCI_Msg * | msg, |
int | value | ||
) |
#include <api.h>
Set the priority of the message.
msg | - Message handle |
value | - Message priority |
Referenced by ocilib::Message::SetPriority().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgGetID | ( | OCI_Msg * | msg, |
void * | id, | ||
unsigned int * | len | ||
) |
#include <api.h>
Return the ID of the message.
msg | - Message handle |
id | - Input buffer |
len | - Input buffer maximum size |
Referenced by ocilib::Message::GetID().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgGetOriginalID | ( | OCI_Msg * | msg, |
void * | id, | ||
unsigned int * | len | ||
) |
#include <api.h>
Return the original ID of the message in the last queue that generated this message.
msg | - Message handle |
id | - Input buffer |
len | - Input buffer maximum size |
Referenced by ocilib::Message::GetOriginalID().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetOriginalID | ( | OCI_Msg * | msg, |
const void * | id, | ||
unsigned int | len | ||
) |
#include <api.h>
Set the original ID of the message in the last queue that generated this message.
msg | - Message handle |
id | - Message ID |
len | - Message ID size |
Referenced by ocilib::Message::SetOriginalID().
#include <api.h>
Return the original sender of a message.
msg | - Message handle |
Referenced by ocilib::Message::GetSender().
#include <api.h>
Set the original sender of a message.
msg | - Message handle |
sender | - Message sender |
Referenced by ocilib::Message::SetSender().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetConsumers | ( | OCI_Msg * | msg, |
OCI_Agent ** | consumers, | ||
unsigned int | count | ||
) |
#include <api.h>
Set the recipient list of a message to enqueue.
msg | - Message handle |
consumers | - Recipients list (array of agent handles) |
count | - Number of recipients |
Referenced by ocilib::Message::SetConsumers().
OCI_SYM_PUBLIC const otext *OCI_API OCI_MsgGetCorrelation | ( | OCI_Msg * | msg | ) |
#include <api.h>
Get the correlation identifier of the message.
msg | - Message handle |
Referenced by ocilib::Message::GetCorrelation().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetCorrelation | ( | OCI_Msg * | msg, |
const otext * | correlation | ||
) |
#include <api.h>
set the correlation identifier of the message
msg | - Message handle |
correlation | - Message correlation text |
Referenced by ocilib::Message::SetCorrelation().
OCI_SYM_PUBLIC const otext *OCI_API OCI_MsgGetExceptionQueue | ( | OCI_Msg * | msg | ) |
#include <api.h>
Get the Exception queue name of the message.
msg | - Message handle |
Referenced by ocilib::Message::GetExceptionQueue().
OCI_SYM_PUBLIC boolean OCI_API OCI_MsgSetExceptionQueue | ( | OCI_Msg * | msg, |
const otext * | queue | ||
) |
#include <api.h>
Set the name of the queue to which the message is moved to if it cannot be processed successfully.
msg | - Message handle |
queue | - Exception queue name |
"Messages are moved into exception queues in two cases : - If the number of unsuccessful dequeue attempts has exceeded the attribute 'max_retries' of given queue - if the message has expired. All messages in the exception queue are in the EXPIRED state. The default is the exception queue associated with the queue table. If the exception queue specified does not exist at the time of the move the message will be moved to the default exception queue associated with the queue table and a warning will be logged in the alert file. This attribute must refer to a valid queue name."
Referenced by ocilib::Message::SetExceptionQueue().
OCI_SYM_PUBLIC OCI_Enqueue *OCI_API OCI_EnqueueCreate | ( | OCI_TypeInfo * | typinf, |
const otext * | name | ||
) |
#include <api.h>
Create a Enqueue object for the given queue.
typinf | - Type info handle |
name | - Queue name |
Referenced by ocilib::Enqueue::Enqueue().
OCI_SYM_PUBLIC boolean OCI_API OCI_EnqueueFree | ( | OCI_Enqueue * | enqueue | ) |
#include <api.h>
Free a Enqueue object.
enqueue | - Enqueue handle |
OCI_SYM_PUBLIC boolean OCI_API OCI_EnqueuePut | ( | OCI_Enqueue * | enqueue, |
OCI_Msg * | msg | ||
) |
#include <api.h>
Enqueue a message on the queue associated to the Enqueue object.
enqueue | - Enqueue handle |
msg | - Message handle to enqueue |
Referenced by ocilib::Enqueue::Put().
OCI_SYM_PUBLIC boolean OCI_API OCI_EnqueueSetSequenceDeviation | ( | OCI_Enqueue * | enqueue, |
unsigned int | sequence | ||
) |
#include <api.h>
Set the enqueuing sequence of messages to put in the queue.
enqueue | - Enqueue handle |
sequence | - enqueuing sequence |
Referenced by ocilib::Enqueue::SetMode().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_EnqueueGetSequenceDeviation | ( | OCI_Enqueue * | enqueue | ) |
#include <api.h>
Return the sequence deviation of messages to enqueue to the queue.
enqueue | - Enqueue handle |
Referenced by ocilib::Enqueue::GetMode().
OCI_SYM_PUBLIC boolean OCI_API OCI_EnqueueSetVisibility | ( | OCI_Enqueue * | enqueue, |
unsigned int | visibility | ||
) |
#include <api.h>
Set whether the new message is enqueued as part of the current transaction.
enqueue | - Enqueue handle |
visibility | - Enqueuing visibility |
Referenced by ocilib::Enqueue::SetVisibility().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_EnqueueGetVisibility | ( | OCI_Enqueue * | enqueue | ) |
#include <api.h>
Get the enqueuing/locking behavior.
enqueue | - Enqueue handle |
Referenced by ocilib::Enqueue::GetVisibility().
OCI_SYM_PUBLIC boolean OCI_API OCI_EnqueueSetRelativeMsgID | ( | OCI_Enqueue * | enqueue, |
const void * | id, | ||
unsigned int | len | ||
) |
#include <api.h>
Set a message identifier to use for enqueuing messages using a sequence deviation.
enqueue | - Enqueue handle |
id | - message identifier |
len | - pointer to message identifier length |
Referenced by ocilib::Enqueue::SetRelativeMsgID().
OCI_SYM_PUBLIC boolean OCI_API OCI_EnqueueGetRelativeMsgID | ( | OCI_Enqueue * | enqueue, |
void * | id, | ||
unsigned int * | len | ||
) |
#include <api.h>
Get the current associated message identifier used for enqueuing messages using a sequence deviation.
enqueue | - Enqueue handle |
id | - buffer to receive the message identifier |
len | - pointer to buffer max length |
Referenced by ocilib::Enqueue::GetRelativeMsgID().
OCI_SYM_PUBLIC OCI_Dequeue *OCI_API OCI_DequeueCreate | ( | OCI_TypeInfo * | typinf, |
const otext * | name | ||
) |
#include <api.h>
Create a Dequeue object for the given queue.
typinf | - Type info handle |
name | - Queue name |
Referenced by ocilib::Dequeue::Dequeue().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueFree | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Free a Dequeue object.
dequeue | - Dequeue handle |
OCI_SYM_PUBLIC OCI_Msg *OCI_API OCI_DequeueGet | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Dequeue messages from the given queue.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::Get().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSubscribe | ( | OCI_Dequeue * | dequeue, |
unsigned int | port, | ||
unsigned int | timeout, | ||
POCI_NOTIFY_AQ | callback | ||
) |
#include <api.h>
Subscribe for asynchronous messages notifications.
dequeue | - Dequeue handle |
port | - Port to use for notifications |
timeout | - notification timeout |
callback | - User handler callback fired when messages are ready to be dequeued |
Referenced by ocilib::Dequeue::Subscribe().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueUnsubscribe | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Unsubscribe for asynchronous messages notifications.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::Unsubscribe().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetConsumer | ( | OCI_Dequeue * | dequeue, |
const otext * | consumer | ||
) |
#include <api.h>
Set the current consumer name to retrieve message for.
dequeue | - Dequeue handle |
consumer | - consumer name |
Referenced by ocilib::Dequeue::SetConsumer().
OCI_SYM_PUBLIC const otext *OCI_API OCI_DequeueGetConsumer | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Get the current consumer name associated with the dequeuing process.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::GetConsumer().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetCorrelation | ( | OCI_Dequeue * | dequeue, |
const otext * | pattern | ||
) |
#include <api.h>
set the correlation identifier of the message to be dequeued
dequeue | - Dequeue handle |
pattern | - correlation identifier |
Referenced by ocilib::Dequeue::SetCorrelation().
OCI_SYM_PUBLIC const otext *OCI_API OCI_DequeueGetCorrelation | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Get the correlation identifier of the message to be dequeued.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::GetCorrelation().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetRelativeMsgID | ( | OCI_Dequeue * | dequeue, |
const void * | id, | ||
unsigned int | len | ||
) |
#include <api.h>
Set the message identifier of the message to be dequeued.
dequeue | - Dequeue handle |
id | - message identifier |
len | - size of the message identifier |
Referenced by ocilib::Dequeue::SetRelativeMsgID().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueGetRelativeMsgID | ( | OCI_Dequeue * | dequeue, |
void * | id, | ||
unsigned int * | len | ||
) |
#include <api.h>
Get the message identifier of the message to be dequeued.
dequeue | - Dequeue handle |
id | - message identifier |
len | - size of the message identifier |
Referenced by ocilib::Dequeue::GetRelativeMsgID().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetVisibility | ( | OCI_Dequeue * | dequeue, |
unsigned int | visibility | ||
) |
#include <api.h>
Set whether the new message is dequeued as part of the current transaction.
dequeue | - Dequeue handle |
visibility | - dequeuing mode |
Referenced by ocilib::Dequeue::SetVisibility().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_DequeueGetVisibility | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Get the dequeuing/locking behavior.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::GetVisibility().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetMode | ( | OCI_Dequeue * | dequeue, |
unsigned int | mode | ||
) |
#include <api.h>
Set the dequeuing/locking behavior.
dequeue | - Dequeue handle |
mode | - dequeuing mode |
Referenced by ocilib::Dequeue::SetMode().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_DequeueGetMode | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Get the dequeuing/locking behavior.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::GetMode().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetNavigation | ( | OCI_Dequeue * | dequeue, |
unsigned int | position | ||
) |
#include <api.h>
Set the position of messages to be retrieved.
dequeue | - Dequeue handle |
position | - navigation position |
Referenced by ocilib::Dequeue::SetNavigation().
OCI_SYM_PUBLIC unsigned int OCI_API OCI_DequeueGetNavigation | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Return the navigation position of messages to retrieve from the queue.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::GetNavigation().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetWaitTime | ( | OCI_Dequeue * | dequeue, |
int | timeout | ||
) |
#include <api.h>
set the time that OCIDequeueGet() waits for messages if no messages are currently available
dequeue | - Dequeue handle |
timeout | - timeout in seconds |
Referenced by ocilib::Dequeue::SetWaitTime().
OCI_SYM_PUBLIC int OCI_API OCI_DequeueGetWaitTime | ( | OCI_Dequeue * | dequeue | ) |
#include <api.h>
Return the time that OCIDequeueGet() waits for messages if no messages are currently available.
dequeue | - Dequeue handle |
Referenced by ocilib::Dequeue::GetWaitTime().
OCI_SYM_PUBLIC boolean OCI_API OCI_DequeueSetAgentList | ( | OCI_Dequeue * | dequeue, |
OCI_Agent ** | consumers, | ||
unsigned int | count | ||
) |
#include <api.h>
Set the Agent list to listen to message for.
dequeue | - Dequeue handle |
consumers | - Agent handle array |
count | - Number of agents the array |
Referenced by ocilib::Dequeue::SetAgents().
OCI_SYM_PUBLIC OCI_Agent *OCI_API OCI_DequeueListen | ( | OCI_Dequeue * | dequeue, |
int | timeout | ||
) |
#include <api.h>
Listen for messages that match any recipient of the associated Agent list.
dequeue | - Dequeue handle |
timeout | - Timeout in second |
Referenced by ocilib::Dequeue::Listen().
OCI_SYM_PUBLIC OCI_Agent *OCI_API OCI_AgentCreate | ( | OCI_Connection * | con, |
const otext * | name, | ||
const otext * | address | ||
) |
#include <api.h>
Create an AQ agent object.
con | - Connection handle |
name | - Agent name |
address | - Agent address |
Referenced by ocilib::Agent::Agent().
OCI_SYM_PUBLIC boolean OCI_API OCI_AgentFree | ( | OCI_Agent * | agent | ) |
#include <api.h>
Free an AQ agent object.
agent | - AQ agent handle |
OCI_SYM_PUBLIC boolean OCI_API OCI_AgentSetName | ( | OCI_Agent * | agent, |
const otext * | name | ||
) |
#include <api.h>
Set the given AQ agent name.
agent | - AQ agent handle |
name | - AQ agent name |
Referenced by ocilib::Agent::SetName().
OCI_SYM_PUBLIC const otext *OCI_API OCI_AgentGetName | ( | OCI_Agent * | agent | ) |
#include <api.h>
Get the given AQ agent name.
agent | - AQ agent handle |
Referenced by ocilib::Agent::GetName().
OCI_SYM_PUBLIC boolean OCI_API OCI_AgentSetAddress | ( | OCI_Agent * | agent, |
const otext * | address | ||
) |
#include <api.h>
Set the given AQ agent address.
agent | - AQ agent handle |
address | - AQ agent address |
Referenced by ocilib::Agent::SetAddress().
OCI_SYM_PUBLIC const otext *OCI_API OCI_AgentGetAddress | ( | OCI_Agent * | agent | ) |
#include <api.h>
Get the given AQ agent address.
agent | - AQ agent handle |
Referenced by ocilib::Agent::GetAddress().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueCreate | ( | OCI_Connection * | con, |
const otext * | queue_name, | ||
const otext * | queue_table, | ||
unsigned int | queue_type, | ||
unsigned int | max_retries, | ||
unsigned int | retry_delay, | ||
unsigned int | retention_time, | ||
boolean | dependency_tracking, | ||
const otext * | comment | ||
) |
#include <api.h>
Create a queue.
con | - Connection handle |
queue_name | - Queue name |
queue_table | - Queue table name |
queue_type | - Queue type |
max_retries | - Maximum number of attempts to dequeue a message |
retry_delay | - Number of seconds between attempts to dequeue a message |
retention_time | - number of seconds a message is retained in the queue table after being dequeued from the queue |
dependency_tracking | - Parameter reserved for future use by Oracle (MUST be set to FALSE) |
comment | - Description of the queue |
To set default values, pass :
Referenced by ocilib::Queue::Create().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueAlter | ( | OCI_Connection * | con, |
const otext * | queue_name, | ||
unsigned int | max_retries, | ||
unsigned int | retry_delay, | ||
unsigned int | retention_time, | ||
const otext * | comment | ||
) |
#include <api.h>
Alter the given queue.
con | - Connection handle |
queue_name | - Queue name |
max_retries | - Maximum number of attempts to dequeue a message |
retry_delay | - Number of seconds between attempts to dequeue a message |
retention_time | - number of seconds a message is retained in the queue table after being dequeued from the queue |
comment | - Description of the queue |
Referenced by ocilib::Queue::Alter().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueDrop | ( | OCI_Connection * | con, |
const otext * | queue_name | ||
) |
#include <api.h>
Drop the given queue.
con | - Connection handle |
queue_name | - Queue name |
Referenced by ocilib::Queue::Drop().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueStart | ( | OCI_Connection * | con, |
const otext * | queue_name, | ||
boolean | enqueue, | ||
boolean | dequeue | ||
) |
#include <api.h>
Start the given queue.
con | - Connection handle |
queue_name | - Queue name |
enqueue | - Enable enqueue |
dequeue | - Enable dequeue |
Referenced by ocilib::Queue::Start().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueStop | ( | OCI_Connection * | con, |
const otext * | queue_name, | ||
boolean | enqueue, | ||
boolean | dequeue, | ||
boolean | wait | ||
) |
#include <api.h>
Stop enqueuing or dequeuing or both on the given queue.
con | - Connection handle |
queue_name | - Queue name |
enqueue | - Disable enqueue |
dequeue | - Disable dequeue |
wait | - Wait for current pending enqueues/dequeues |
Referenced by ocilib::Queue::Stop().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueTableCreate | ( | OCI_Connection * | con, |
const otext * | queue_table, | ||
const otext * | queue_payload_type, | ||
const otext * | storage_clause, | ||
const otext * | sort_list, | ||
boolean | multiple_consumers, | ||
unsigned int | message_grouping, | ||
const otext * | comment, | ||
unsigned int | primary_instance, | ||
unsigned int | secondary_instance, | ||
const otext * | compatible | ||
) |
#include <api.h>
Create a queue table for messages of the given type.
con | - Connection handle |
queue_table | - Queue table name |
queue_payload_type | - Message type name |
storage_clause | - Additional clauses for the table storage |
sort_list | - Additional columns name to use for sorting |
multiple_consumers | - Enable multiple consumers for each messages |
message_grouping | - Specifies if messages are grouped within a transaction |
comment | - Description of the queue table |
primary_instance | - primary owner (instance) of the queue table |
secondary_instance | - Owner of the queue table if the primary instance is not available |
compatible | - lowest database version with which the queue table is compatible |
To set default values, pass :
Referenced by ocilib::QueueTable::Create().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueTableAlter | ( | OCI_Connection * | con, |
const otext * | queue_table, | ||
const otext * | comment, | ||
unsigned int | primary_instance, | ||
unsigned int | secondary_instance | ||
) |
#include <api.h>
Alter the given queue table.
con | - Connection handle |
queue_table | - Queue table name |
comment | - Description of the queue table |
primary_instance | - primary owner (instance) of the queue table |
secondary_instance | - Owner of the queue table if the primary instance is not available |
Referenced by ocilib::QueueTable::Alter().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueTableDrop | ( | OCI_Connection * | con, |
const otext * | queue_table, | ||
boolean | force | ||
) |
#include <api.h>
Drop the given queue table.
con | - Connection handle |
queue_table | - Queue table name |
force | - Force the deletion of objects related to the queue table |
Referenced by ocilib::QueueTable::Drop().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueTablePurge | ( | OCI_Connection * | con, |
const otext * | queue_table, | ||
const otext * | purge_condition, | ||
boolean | block, | ||
unsigned int | delivery_mode | ||
) |
#include <api.h>
Purge messages from the given queue table.
con | - Connection handle |
queue_table | - Queue table name |
purge_condition | - Optional SQL based conditions (see notes) |
block | - Lock all queues using the queue table while doing the purge |
delivery_mode | - Type of message to purge |
Referenced by ocilib::QueueTable::Purge().
OCI_SYM_PUBLIC boolean OCI_API OCI_QueueTableMigrate | ( | OCI_Connection * | con, |
const otext * | queue_table, | ||
const otext * | compatible | ||
) |
#include <api.h>
Migrate a queue table from one version to another.
con | - Connection handle |
queue_table | - Queue table name |
compatible | - Database version with witch the queue table has to migrate |
Referenced by ocilib::QueueTable::Migrate().