|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
Class allowing the administration of Oracle Queues. More...
#include <ocilib.hpp>
Public Types | |
| enum | QueueTypeValues { NormalQueue = OCI_AQT_NORMAL, ExceptionQueue = OCI_AQT_EXCEPTION, NonPersistentQueue = OCI_AQT_NON_PERSISTENT } |
| Queue Type enumerated values. More... | |
| typedef Enum< QueueTypeValues > | QueueType |
| Queue Type. More... | |
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. More... | |
| 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. More... | |
| static void | Drop (const Connection &connection, const ostring &queue) |
| Drop the given queue. More... | |
| static void | Start (const Connection &connection, const ostring &queue, bool enableEnqueue=true, bool enableDequeue=true) |
| Start the given queue. More... | |
| 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. More... | |
Class allowing the administration of Oracle Queues.
Definition at line 7402 of file ocilib.hpp.
| typedef Enum<QueueTypeValues> ocilib::Queue::QueueType |
Queue Type enumerated values.
| Enumerator | |
|---|---|
| NormalQueue |
Normal queue |
| ExceptionQueue |
Exception queue |
| NonPersistentQueue |
Non persistent queue |
Definition at line 7411 of file ocilib.hpp.
|
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 5950 of file ocilib_impl.hpp.
References ocilib::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 5956 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueAlter().
|
inlinestatic |
Drop the given queue.
| connection | - Database connection |
| queue | - Queue name |
Definition at line 5961 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueDrop().
|
inlinestatic |
Start the given queue.
| connection | - Database connection |
| queue | - Queue name |
| enableEnqueue | - Enable enqueue |
| enableDequeue | - Enable dequeue |
Definition at line 5966 of file ocilib_impl.hpp.
References ocilib::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 enqueuues/dequeues |
Definition at line 5971 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_QueueStop().