Oracle® Data Provider for .NET Developer's Guide 11g Release 2 (11.2.0.3) Part Number E23174-02 |
|
|
PDF · Mobi · ePub |
The OracleAQEnqueueOptions
class represents the options available when enqueuing a message to an OracleAQQueue
.
System.Object
OracleAQEnqueueOptions
// C# public sealed class OracleAQEnqueueOptions : ICloneable
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
Namespace: Oracle.DataAccess.Client
Assembly: Oracle.DataAccess.dll
ODP.NET Version: ODP.NET for .NET Framework 2.0 or ODP.NET for .NET Framework 4
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.
Table 12-11 OracleAQEnqueueOptions Public Methods
Public Method | Description |
---|---|
Creates a copy of an |
This constructor creates an instance of the OracleAQEnqueueOptions
class with default property values.
// C# public OracleAQEnqueueOptions();
See Also:
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.
OracleAQMessageDeliveryMode.Buffered
can be specified only with Oracle Database 10g release 2 (10.2) or higher. Buffered messaging is supported in all queue tables created with a database compatibility level of 8.1 or higher.
See Also:
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.
See Also:
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:
This method creates a copy of an OracleAQEnqueueOptions
object.
// C# public object Clone();
An OracleAQEnqueueOptions
object.
ICloneable.
The cloned object has the same property values as that of the object being cloned.