OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Enqueue object for queuing messages into an Oracle Queue. More...
#include <types.hpp>
Inherits ocilib::core::HandleHolder< OCI_Enqueue * >.
Public Types | |
enum | EnqueueModeValues { Before = OCI_ASD_BEFORE , OnTop = OCI_ASD_TOP } |
Message enqueuing mode enumerated values. More... | |
enum | EnqueueVisibilityValues { Immediate = OCI_AMV_IMMEDIATE , OnCommit = OCI_AMV_ON_COMMIT } |
Message visibility enumerated values. More... | |
typedef core::Enum< EnqueueModeValues > | EnqueueMode |
Message enqueuing mode. | |
typedef core::Enum< EnqueueVisibilityValues > | EnqueueVisibility |
Message visibility after begin queued. | |
Public Member Functions | |
Enqueue (const TypeInfo &typeInfo, const ostring &queueName) | |
Create a Enqueue object for the given queue. | |
void | Put (const Message &message) |
Enqueue a message the on queue associated to the Enqueue object. | |
EnqueueVisibility | GetVisibility () const |
Get the enqueuing/locking behavior. | |
void | SetVisibility (EnqueueVisibility value) |
Set whether the new message is enqueued as part of the current transaction. | |
EnqueueMode | GetMode () const |
Return the enqueuing mode of messages to enqueue. | |
void | SetMode (EnqueueMode value) |
Set the enqueuing mode of messages to put in the queue. | |
Raw | GetRelativeMsgID () const |
Get the current associated message identifier used for enqueuing messages using a sequence deviation. | |
void | SetRelativeMsgID (const Raw &value) |
Set a message identifier to use for enqueuing messages using a sequence deviation. | |
Enqueue object for queuing messages into an Oracle Queue.
This class wraps the OCILIB object handle OCI_Enqueue and its related methods
Message enqueuing mode.
Possible values are Enqueue::EnqueueModeValues
Message visibility after begin queued.
Possible values are Enqueue::EnqueueVisibilityValues
Create a Enqueue object for the given queue.
typeInfo | - Type info handle |
queueName | - Queue name |
Definition at line 30 of file Enqueue.hpp.
References ocilib::core::Check(), ocilib::TypeInfo::GetConnection(), and OCI_EnqueueCreate().
|
inline |
Enqueue a message the on queue associated to the Enqueue object.
message | - Message to enqueue |
Definition at line 41 of file Enqueue.hpp.
References ocilib::core::Check(), and OCI_EnqueuePut().
|
inline |
Get the enqueuing/locking behavior.
Definition at line 46 of file Enqueue.hpp.
References ocilib::core::Check(), and OCI_EnqueueGetVisibility().
|
inline |
Set whether the new message is enqueued as part of the current transaction.
value | - Enqueuing visibility |
Definition at line 51 of file Enqueue.hpp.
References ocilib::core::Check(), and OCI_EnqueueSetVisibility().
|
inline |
Return the enqueuing mode of messages to enqueue.
Definition at line 56 of file Enqueue.hpp.
References ocilib::core::Check(), and OCI_EnqueueGetSequenceDeviation().
|
inline |
Set the enqueuing mode of messages to put in the queue.
value | - enqueuing mode |
Definition at line 61 of file Enqueue.hpp.
References ocilib::core::Check(), and OCI_EnqueueSetSequenceDeviation().
|
inline |
Get the current associated message identifier used for enqueuing messages using a sequence deviation.
Definition at line 66 of file Enqueue.hpp.
References ocilib::core::Check(), ocilib::core::MakeRaw(), and OCI_EnqueueGetRelativeMsgID().
|
inline |
Set a message identifier to use for enqueuing messages using a sequence deviation.
value | - message identifier |
Definition at line 77 of file Enqueue.hpp.
References ocilib::core::Check(), and OCI_EnqueueSetRelativeMsgID().