The OracleAQEnqueueOptions
class represents the options available when enqueuing a message to an OracleAQQueue
.
System.Object
OracleAQEnqueueOptions
// C# public sealed class OracleAQEnqueueOptions : ICloneable
Provider | ODP.NET, Unmanaged Driver |
Assembly | Oracle.DataAccess.dll |
Namespace | Oracle.DataAccess.Client |
.NET Framework | 3.5, 4.0, 4.5 |
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
See Also:
The OracleAQEnqueueOptions
members are listed in the following tables.
OracleAQEnqueueOptions Constructor
OracleAQEnqueueOptions
constructor is listed in Table 12-9.
Table 12-9 OracleAQEnqueueOptions Constructor
Constructor | Description |
---|---|
Instantiates a new instance of the |
OracleAQEnqueueOptions Properties
OracleAQEnqueueOptions
properties are listed in Table 12-10.
Table 12-10 OracleAQEnqueueOptions Properties
Property | Description |
---|---|
Specifies the delivery mode of the message being enqueued. |
|
Specifies whether or not the new message is enqueued as part of the current transaction. |
OracleAQEnqueueOptions Public Methods
The OracleAQEnqueueOptions
public method is listed in Table 12-11.
This constructor creates an instance of the OracleAQEnqueueOptions
class with default property values.
// C# public OracleAQEnqueueOptions();
OracleAQEnqueueOptions
properties are listed in Table 12-12.
Table 12-12 OracleAQEnqueueOptions Properties
Property | Description |
---|---|
Specifies the delivery mode of the message being enqueued. |
|
Specifies whether or not the new message is enqueued as part of the current transaction. |
See Also:
This instance property specifies the delivery mode of the message being enqueued.
// C# public OracleAQMessageDeliveryMode DeliveryMode {get;set;}
ArgumentOutOfRangeException
- The specified Visibility
value is invalid.
The valid values can be any of the following enumerated values:
OracleAQMessageDeliveryMode.Persistent
OracleAQMessageDeliveryMode.Buffered
The default is OracleAQMessageDeliveryMode.Persistent
.
OracleAQMessageDeliveryMode.PersistentOrBuffered
cannot be set on this property.
This instance property specifies whether or not the new message is enqueued as part of the current transaction.
// C# public OracleAQVisibilityMode Visibility {get;set;}
An OracleAQVisibilityMode
enumerated value.
ArgumentOutOfRangeException
- The specified Visibility
value is invalid.
The default value is OracleAQVisibilityMode.OnCommit
. You must use transactions when using the default value. If transactions are not used when using the default visibility mode of OracleAQVisibilityMode.OnCommit
, then messages are not enqueued to the queue.
Using the alternative visibility mode value, OracleAQVisibilityMode.Immediate
eliminates the need to use a transaction. The queue is not affected in case the enqueue operation fails. The message does not get enqueued to the queue for such cases.
OracleAQEnqueueOptions
public method is listed in Table 12-13.
Table 12-13 OracleAQEnqueueOptions Public Methods
Public Method | Description |
---|---|
Creates a copy of an |
See Also: