|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
Dequeue object for dequeuing messages into an Oracle Queue. More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_Dequeue * >.
Public Types | |
| enum | DequeueModeValues { Browse = OCI_ADM_BROWSE, Locked = OCI_ADM_LOCKED, Remove = OCI_ADM_REMOVE, Confirm = OCI_ADM_REMOVE_NODATA } |
| Dequeue mode enumerated values. More... | |
| enum | DequeueVisibilityValues { Immediate = OCI_AMV_IMMEDIATE, OnCommit = OCI_AMV_ON_COMMIT } |
| Message visibility enumerated values. More... | |
| enum | NavigationModeValues { FirstMessage = OCI_ADN_FIRST_MSG, NextMessage = OCI_ADN_NEXT_MSG, NextTransaction = OCI_ADN_NEXT_TRANSACTION } |
| Navigation Mode enumerated values. More... | |
| typedef void(* | NotifyAQHandlerProc )(Dequeue &dequeue) |
| User callback for dequeue event notifications. | |
| typedef Enum< DequeueModeValues > | DequeueMode |
| Dequeue mode. More... | |
| typedef Enum < DequeueVisibilityValues > | DequeueVisibility |
| Message visibility after begin dequeued. More... | |
| typedef Enum < NavigationModeValues > | NavigationMode |
| Navigation Mode. More... | |
Public Member Functions | |
| Dequeue (const TypeInfo &typeInfo, const ostring &queueName) | |
| Parametrized constructor. More... | |
| Message | Get () |
| Dequeue messages from the given queue. More... | |
| Agent | Listen (int timeout) |
| Listen for messages that match any recipient of the associated Agent list. More... | |
| ostring | GetConsumer () const |
| Get the current consumer name associated with the dequeueing process. More... | |
| void | SetConsumer (const ostring &value) |
| Set the current consumer name to retrieve message for. More... | |
| ostring | GetCorrelation () const |
| Get the correlation identifier of the message to be dequeued. More... | |
| void | SetCorrelation (const ostring &value) |
| set the correlation identifier of the message to be dequeued More... | |
| Raw | GetRelativeMsgID () const |
| Get the message identifier of the message to be dequeued. More... | |
| void | SetRelativeMsgID (const Raw &value) |
| Set the message identifier of the message to be dequeued. More... | |
| DequeueVisibility | GetVisibility () const |
| Get the dequeueing/locking behavior. More... | |
| void | SetVisibility (DequeueVisibility value) |
| Set whether the new message is dequeued as part of the current transaction. More... | |
| DequeueMode | GetMode () const |
| Get the dequeueing/locking behavior. More... | |
| void | SetMode (DequeueMode value) |
| Set the dequeueing/locking behavior. More... | |
| NavigationMode | GetNavigation () const |
| Return the navigation position of messages to retrieve from the queue. More... | |
| void | SetNavigation (NavigationMode value) |
| Set the position of messages to be retrieved. More... | |
| int | GetWaitTime () const |
| Return the time that Get() waits for messages if no messages are currently available. More... | |
| void | SetWaitTime (int value) |
| Set the time that Get() waits for messages if no messages are currently available. More... | |
| void | SetAgents (std::vector< Agent > &agents) |
| Set the Agent list to listen to message for. More... | |
| void | Subscribe (unsigned int port, unsigned int timeout, NotifyAQHandlerProc handler) |
| Subscribe for asynchronous messages notifications. More... | |
| void | Unsubscribe () |
| Unsubscribe for asynchronous messages notifications. More... | |
Dequeue object for dequeuing messages into an Oracle Queue.
This class wraps the OCILIB object handle OCI_Dequeue and its related methods
Definition at line 7052 of file ocilib.hpp.
Dequeue mode.
Possible values are Dequeue::DequeueModeValues
Definition at line 7091 of file ocilib.hpp.
Message visibility after begin dequeued.
Possible values are Dequeue::DequeueVisibilityValues
Definition at line 7113 of file ocilib.hpp.
Navigation Mode.
Possible values are Dequeue::NavigationModeValues
Definition at line 7138 of file ocilib.hpp.
Dequeue mode enumerated values.
Definition at line 7072 of file ocilib.hpp.
Message visibility enumerated values.
| Enumerator | |
|---|---|
| Immediate |
Dequeue is an independent transaction |
| OnCommit |
Dequeue is part of current transaction |
Definition at line 7098 of file ocilib.hpp.
Navigation Mode enumerated values.
Definition at line 7120 of file ocilib.hpp.
Parametrized constructor.
| typeInfo | - Payload type info |
| queueName | - Queue name |
Definition at line 5698 of file ocilib_impl.hpp.
References ocilib::Check(), OCI_DequeueCreate(), and OCI_DequeueFree().
|
inline |
Dequeue messages from the given queue.
Definition at line 5708 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueGet().
|
inline |
Listen for messages that match any recipient of the associated Agent list.
| timeout | - Timeout in second |
Definition at line 5713 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueListen().
|
inline |
Get the current consumer name associated with the dequeueing process.
Definition at line 5718 of file ocilib_impl.hpp.
References ocilib::Check(), ocilib::MakeString(), and OCI_DequeueGetConsumer().
|
inline |
Set the current consumer name to retrieve message for.
| value | - consumer name |
Definition at line 5723 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetConsumer().
|
inline |
Get the correlation identifier of the message to be dequeued.
Definition at line 5728 of file ocilib_impl.hpp.
References ocilib::Check(), ocilib::MakeString(), and OCI_DequeueGetCorrelation().
|
inline |
set the correlation identifier of the message to be dequeued
| value | - correlation identifier |
Definition at line 5733 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetCorrelation().
|
inline |
Get the message identifier of the message to be dequeued.
Definition at line 5738 of file ocilib_impl.hpp.
References ocilib::Check(), ocilib::MakeRaw(), and OCI_DequeueGetRelativeMsgID().
|
inline |
Set the message identifier of the message to be dequeued.
| value | - message identitier |
Definition at line 5749 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetRelativeMsgID().
|
inline |
Get the dequeueing/locking behavior.
Definition at line 5754 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueGetVisibility().
|
inline |
Set whether the new message is dequeued as part of the current transaction.
| value | - dequeueing mode |
Definition at line 5759 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetVisibility().
|
inline |
Get the dequeueing/locking behavior.
Definition at line 5764 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueGetMode().
|
inline |
Set the dequeueing/locking behavior.
| value | - dequeueing mode |
Definition at line 5769 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetMode().
|
inline |
Return the navigation position of messages to retrieve from the queue.
Definition at line 5774 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueGetNavigation().
|
inline |
Set the position of messages to be retrieved.
| value | - navigation position |
Definition at line 5779 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetNavigation().
|
inline |
Return the time that Get() waits for messages if no messages are currently available.
Definition at line 5784 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueGetWaitTime().
|
inline |
Set the time that Get() waits for messages if no messages are currently available.
| value | - timeout in seconds |
Definition at line 5789 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetWaitTime().
|
inline |
Set the Agent list to listen to message for.
| agents | - vector of agents |
Definition at line 5794 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSetAgentList().
|
inline |
Subscribe for asynchronous messages notifications.
| port | - Port to use for notifications |
| timeout | - notification timeout |
| handler | - User handler callback fired when messages are ready to be dequeued |
Definition at line 5809 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueSubscribe().
|
inline |
Unsubscribe for asynchronous messages notifications.
Definition at line 5816 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_DequeueUnsubscribe().