OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Class allowing the administration of Oracle Queues. More...
#include <types.hpp>
Public Types | |
enum | QueueTypeValues { NormalQueue = OCI_AQT_NORMAL , ExceptionQueue = OCI_AQT_EXCEPTION , NonPersistentQueue = OCI_AQT_NON_PERSISTENT } |
Queue Type enumerated values. More... | |
typedef core::Enum< QueueTypeValues > | QueueType |
Queue Type. | |
Static Public Member Functions | |
static void | Create (const Connection &connection, const ostring &queue, const ostring &table, QueueType type=NormalQueue, unsigned int maxRetries=0, unsigned int retryDelay=0, unsigned int retentionTime=0, bool dependencyTracking=false, const ostring &comment=OTEXT("")) |
Create a queue. | |
static void | Alter (const Connection &connection, const ostring &queue, unsigned int maxRetries=0, unsigned int retryDelay=0, unsigned int retentionTime=0, const ostring &comment=OTEXT("")) |
Alter the given queue. | |
static void | Drop (const Connection &connection, const ostring &queue) |
Drop the given queue. | |
static void | Start (const Connection &connection, const ostring &queue, bool enableEnqueue=true, bool enableDequeue=true) |
Start the given queue. | |
static void | Stop (const Connection &connection, const ostring &queue, bool stopEnqueue=true, bool stopDequeue=true, bool wait=true) |
Stop enqueuing or dequeuing or both on the given queue. | |
|
inlinestatic |
Create a queue.
connection | - Database connection |
queue | - Queue name |
table | - Queue table name |
type | - Queue type |
maxRetries | - Maximum number of attempts to dequeue a message |
retryDelay | - Number of seconds between attempts to dequeue a message |
retentionTime | - number of seconds a message is retained in the queue table after being dequeued from the queue |
dependencyTracking | - Parameter reserved for future use by Oracle (MUST be set to FALSE) |
comment | - Description of the queue |
Definition at line 28 of file Queue.hpp.
References ocilib::core::Check(), and OCI_QueueCreate().
|
inlinestatic |
Alter the given queue.
connection | - Database connection |
queue | - Queue name |
maxRetries | - Maximum number of attempts to dequeue a message |
retryDelay | - Number of seconds between attempts to dequeue a message |
retentionTime | - number of seconds a message is retained in the queue table after being dequeued from the queue |
comment | - Description of the queue |
Definition at line 34 of file Queue.hpp.
References ocilib::core::Check(), and OCI_QueueAlter().
|
inlinestatic |
Drop the given queue.
connection | - Database connection |
queue | - Queue name |
Definition at line 39 of file Queue.hpp.
References ocilib::core::Check(), and OCI_QueueDrop().
|
inlinestatic |
Start the given queue.
connection | - Database connection |
queue | - Queue name |
enableEnqueue | - Enable enqueue |
enableDequeue | - Enable dequeue |
Definition at line 44 of file Queue.hpp.
References ocilib::core::Check(), and OCI_QueueStart().
|
inlinestatic |
Stop enqueuing or dequeuing or both on the given queue.
connection | - Database connection |
queue | - Queue name |
stopEnqueue | - Disable enqueue |
stopDequeue | - Disable dequeue |
wait | - Wait for current pending enqueues/dequeues |
Definition at line 49 of file Queue.hpp.
References ocilib::core::Check(), and OCI_QueueStop().