You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/api_manual/aq.rst
+41-29Lines changed: 41 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,14 @@ An AqQueue object is created by
9
9
dequeuing Oracle Advanced Queuing messages. Each AqQueue can be used for
10
10
enqueuing, dequeuing, or for both.
11
11
12
-
.. note::
13
-
14
-
In this release, Oracle Advanced Queuing (AQ) is only supported in the
15
-
node-oracledb Thick mode. See :ref:`enablingthick`.
16
-
17
12
See :ref:`Oracle Advanced Queuing (AQ) <aq>` for usage.
18
13
19
14
.. versionadded:: 4.0
20
15
16
+
.. versionchanged:: 6.10
17
+
18
+
Support for AQ was added in node-oracledb Thin mode.
19
+
21
20
.. _aqqueueproperties:
22
21
23
22
AqQueue Properties
@@ -43,47 +42,56 @@ AqQueue Properties
43
42
44
43
.. _aqdeqoptionsclass:
45
44
46
-
.. list-table-with-summary:: AqDeqOptions Class Attributes
45
+
.. list-table-with-summary:: AqDeqOptions Class Properties
47
46
:header-rows: 1
48
47
:class: wy-table-responsive
49
48
:align: center
50
49
:widths: 10 10 30
51
-
:summary: The first column displays the attribute name. The second
52
-
column displays the data type of the attribute. The third column
53
-
displays the description of the attribute.
50
+
:summary: The first column displays the property name. The second
51
+
column displays the data type of the property. The third column
52
+
displays the description of the property.
54
53
55
-
* - Attribute Name
54
+
* - Property Name
56
55
- Data Type
57
56
- Description
58
57
* - ``condition``
59
58
- String
60
-
- The condition that must be satisfied in order for a message to be dequeued. The condition is a boolean expression similar to the WHERE clause of a SQL query. The boolean expression can include conditions on message properties, user data properties, and PL/SQL or SQL functions.
59
+
- This read/write property is the condition that must be satisfied in order for a message to be dequeued. The condition is a boolean expression similar to the WHERE clause of a SQL query. The boolean expression can include conditions on message properties, user data properties, and PL/SQL or SQL functions.
61
60
* - ``consumerName``
62
61
- String
63
-
- The name of the consumer that is dequeuing messages. Only messages matching the consumer name will be accessed. If the queue is not set up for multiple consumers, then this attribute should not be set.
62
+
- This read/write property is the name of the consumer that is dequeuing messages. Only messages matching the consumer name will be accessed. If the queue is not set up for multiple consumers, then this attribute should not be set.
64
63
* - ``correlation``
65
64
- String
66
-
- The correlation to use when dequeuing. Special pattern-matching characters, such as the percent sign (%) and the underscore (_), can be used. If multiple messages satisfy the pattern, the order of dequeuing is indeterminate.
65
+
- This read/write property is the correlation to use when dequeuing. Special pattern-matching characters, such as the percent sign (%) and the underscore (_), can be used. If multiple messages satisfy the pattern, the order of dequeuing is indeterminate.
66
+
* - ``deliveryMode``
67
+
- Integer
68
+
- This write-only property is the delivery mode when dequeuing messages. It can be one of the following constants: :ref:`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT <oracledbconstantsaq>`, :ref:`oracledb.AQ_MSG_DELIV_MODE_BUFFERED <oracledbconstantsaq>`, or :ref:`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT_OR_BUFFERED <oracledbconstantsaq>`.
69
+
70
+
Note that :ref:`oracledb.AQ_MSG_DELIV_MODE_BUFFERED <oracledbconstantsaq>` is not supported with JSON payloads.
71
+
72
+
.. versionadded:: 6.10
67
73
* - ``mode``
68
74
- Integer
69
-
- The mode to use for dequeuing messages. It can be one of the following constants: :ref:`oracledb.AQ_DEQ_MODE_BROWSE <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_MODE_LOCKED <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_MODE_REMOVE <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_MODE_REMOVE_NO_DATA <oracledbconstantsaq>`.
75
+
- This read/write property is the mode to use for dequeuing messages. It can be one of the following constants: :ref:`oracledb.AQ_DEQ_MODE_BROWSE <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_MODE_LOCKED <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_MODE_REMOVE <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_MODE_REMOVE_NO_DATA <oracledbconstantsaq>`.
70
76
* - ``msgId``
71
77
- Buffer
72
-
- A unique identifier specifying the message to be dequeued.
78
+
- This read/write property is a unique identifier specifying the message to be dequeued.
73
79
* - ``navigation``
74
80
- Integer
75
-
- The position in the queue of the message that is to be dequeued. It can be one of the following constants: :ref:`oracledb.AQ_DEQ_NAV_FIRST_MSG <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_NAV_NEXT_TRANSACTION <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_NAV_NEXT_MSG <oracledbconstantsaq>`.
81
+
- This read/write property is the position in the queue of the message that is to be dequeued. It can be one of the following constants: :ref:`oracledb.AQ_DEQ_NAV_FIRST_MSG <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_NAV_NEXT_TRANSACTION <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_NAV_NEXT_MSG <oracledbconstantsaq>`.
76
82
* - ``transformation``
77
83
- String
78
-
- The transformation that will take place on messages when they are dequeued. The transformation must be created using dbms_transform.
84
+
- This read/write property is the transformation that will take place on messages when they are dequeued. The transformation must be created using dbms_transform.
79
85
80
-
This attribute is not supported in Transactional Event Queues (TxEventQ).
86
+
This attribute is only supported in node-oracledb :ref:`Thick mode <enablingthick>` and is not supported in Transactional Event Queues (TxEventQ).
81
87
* - ``visibility``
82
88
- Integer
83
-
- Defines whether the dequeue occurs in the current transaction or as a separate transaction. It can be one of the following constants: :ref:`oracledb.AQ_VISIBILITY_IMMEDIATE <oracledbconstantsaq>`, :ref:`oracledb.AQ_VISIBILITY_ON_COMMIT <oracledbconstantsaq>`.
89
+
- This read/write property defines whether the dequeue occurs in the current transaction or as a separate transaction. It can be one of the following constants: :ref:`oracledb.AQ_VISIBILITY_IMMEDIATE <oracledbconstantsaq>`, :ref:`oracledb.AQ_VISIBILITY_ON_COMMIT <oracledbconstantsaq>`.
90
+
91
+
Constant :ref:`oracledb.AQ_VISIBILITY_IMMEDIATE <oracledbconstantsaq>` can only be specified in :meth:`aqQueue.deqMany()` when using node-oracledb :ref:`Thick mode <enablingthick>`.
84
92
* - ``wait``
85
93
- Integer
86
-
- The number of seconds to wait for a message matching the search criteria to become available. It can alternatively be one of the following constants: :ref:`oracledb.AQ_DEQ_NO_WAIT <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_WAIT_FOREVER <oracledbconstantsaq>`.
94
+
- This read/write property is the number of seconds to wait for a message matching the search criteria to become available. It can alternatively be one of the following constants: :ref:`oracledb.AQ_DEQ_NO_WAIT <oracledbconstantsaq>`, :ref:`oracledb.AQ_DEQ_WAIT_FOREVER <oracledbconstantsaq>`.
87
95
88
96
See `Oracle Advanced Queuing Documentation <https://www.oracle.com/pls
89
97
/topic/lookup?ctx=dblatest&id=ADQUE>`__ for more information about
@@ -104,29 +112,33 @@ AqQueue Properties
104
112
105
113
.. _aqenqoptionsclass:
106
114
107
-
.. list-table-with-summary:: AqEnqOptions Class Attributes
115
+
.. list-table-with-summary:: AqEnqOptions Class Properties
108
116
:header-rows: 1
109
117
:class: wy-table-responsive
110
118
:align: center
111
119
:widths: 10 10 30
112
-
:summary: The first column displays the attribute name. The second
113
-
column displays the data type of the attribute. The third column
114
-
displays the description of the attribute.
120
+
:summary: The first column displays the property name. The second
121
+
column displays the data type of the property. The third column
122
+
displays the description of the property.
115
123
116
-
* - Attribute Name
124
+
* - Property Name
117
125
- Data Type
118
126
- Description
119
127
* - ``deliveryMode``
120
128
- Integer
121
-
- The delivery mode when enqueuing messages. It can be one of the following constants: :ref:`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT <oracledbconstantsaq>`, :ref:`oracledb.AQ_MSG_DELIV_MODE_BUFFERED <oracledbconstantsaq>`, :ref:`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT_OR_BUFFERED <oracledbconstantsaq>`.
129
+
- This read/write property is the delivery mode when enqueuing messages. It can be one of the following constants: :ref:`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT <oracledbconstantsaq>`, :ref:`oracledb.AQ_MSG_DELIV_MODE_BUFFERED <oracledbconstantsaq>`, :ref:`oracledb.AQ_MSG_DELIV_MODE_PERSISTENT_OR_BUFFERED <oracledbconstantsaq>`.
130
+
131
+
Note that :ref:`oracledb.AQ_MSG_DELIV_MODE_BUFFERED <oracledbconstantsaq>` is not supported with JSON payloads.
122
132
* - ``transformation``
123
133
- String
124
-
- The transformation that will take place when messages are enqueued. The transformation must be created using dbms_transform.
134
+
- This read/write property is the transformation that will take place when messages are enqueued. The transformation must be created using dbms_transform.
125
135
126
-
This attribute is not supported in Transactional Event Queues (TxEventQ).
136
+
This attribute is only supported in node-oracledb :ref:`Thick mode <enablingthick>` and is not supported in Transactional Event Queues (TxEventQ).
127
137
* - ``visibility``
128
138
- Integer
129
-
- Defines whether the enqueue occurs in the current transaction or as a separate transaction. It can be one of the following constants: :ref:`oracledb.AQ_VISIBILITY_IMMEDIATE <oracledbconstantsaq>`, :ref:`oracledb.AQ_VISIBILITY_ON_COMMIT <oracledbconstantsaq>`.
139
+
- This read/write property defines whether the enqueue occurs in the current transaction or as a separate transaction. It can be one of the following constants: :ref:`oracledb.AQ_VISIBILITY_IMMEDIATE <oracledbconstantsaq>`, :ref:`oracledb.AQ_VISIBILITY_ON_COMMIT <oracledbconstantsaq>`.
140
+
141
+
Constant :ref:`oracledb.AQ_VISIBILITY_IMMEDIATE <oracledbconstantsaq>` can only be specified in :meth:`aqQueue.enqMany()` when using node-oracledb :ref:`Thick mode <enablingthick>`.
130
142
131
143
See `Oracle Advanced Queuing Documentation <https://www.oracle.com/pls/
132
144
topic/lookup?ctx=dblatest&id=ADQUE>`__ for more information about
0 commit comments