The OracleAQMessageAvailableEventArgs
class provides event data for the OracleAQQueue.MessageAvailable
event.
System.Object
System.EventArgs
Oracle.DataAccess.Client.OracleAQMessageAvailableEventArgs
// C# public sealed class OracleAQMessageAvailableEventArgs
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
This class cannot be inherited.
For detailed information on all the inherited properties and methods, please read the documentation provided by Microsoft's .NET Documentation.
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:
OracleAQMessageAvailableEventArgs
members are listed in the following tables.
OracleAQMessageAvailableEventArgs Properties
OracleAQMessageAvailableEventArgs
properties are listed in Table 12-17.
Table 12-17 OracleAQMessageAvailableEventArgs Properties
Property | Description |
---|---|
Specifies the number of messages that raised this notification. |
|
Provides the name of the consumer for which the message is available for dequeuing. |
|
Provides the name of the consumer for which the message is available for dequeuing. |
|
Specifies the duration, in seconds, after which an enqueued message is available for dequeuing. |
|
Specifies the delivery mode of the message. |
|
Specifies the time when the message was enqueued. |
|
Specifies the name of the queue that the message is moved to if it cannot be processed successfully. |
|
Specifies the duration, in seconds, for which an enqueued message is available for dequeuing before expiring. |
|
Returns an array of message identifiers. |
|
Indicates the type of notification such as regular, grouping, or timeout. |
|
Specifies the ID of the message, in the last queue, that generated this message. |
|
Specifies the priority of the message. |
|
Indicates the name of the queue that contains the message to be dequeued. |
|
Identifies the original sender of the message. |
|
Specifies the state of the message. |
OracleAQMessageAvailableEventArgs
properties are listed in Table 12-18.
Table 12-18 OracleAQMessageAvailableEventArgs Properties
Property | Description |
---|---|
Specifies the number of messages that raised this notification. |
|
Provides the name of the consumer for which the message is available for dequeuing. |
|
Provides the name of the consumer for which the message is available for dequeuing. |
|
Specifies the duration, in seconds, after which an enqueued message is available for dequeuing. |
|
Specifies the delivery mode of the message. |
|
Specifies the time when the message was enqueued. |
|
Specifies the name of the queue that the message is moved to if it cannot be processed successfully. |
|
Specifies the duration, in seconds, for which an enqueued message is available for dequeuing before expiring. |
|
Returns an array of message identifiers. |
|
Indicates the type of notification such as regular, grouping, or timeout. |
|
Specifies the ID of the message, in the last queue, that generated this message. |
|
Specifies the priority of the message. |
|
Indicates the name of the queue that contains the message to be dequeued. |
|
Identifies the original sender of the message. |
|
Specifies the state of the message. |
See Also:
This instance property specifies the number of messages that raised this notification.
// C# public int AvailableMessages{get;}
An integer
indicating the number of messages that raised this notification.
The property value is 1 for a regular notification type. The notification type can be specified using the OracleAQQueue.Notification
property.
This property is not relevant if the NotificationType
is OracleAQNotificationType.Timeout
.
This property provides the name of the consumer for which the message is available for dequeuing.
// C# public string ConsumerName {get;}
A string
that identifies the name of the consumer.
This instance property specifies the identification for the message.
// C# public string Correlation {get;}
A string
that specifies the identification for the message.
This property specifies the correlation of the message for which the notification is raised. The consumer can then use this identification to dequeue specific messages by setting the "Correlation" property of the OracleAQDequeueOptions
object.
This instance property specifies the duration, in seconds, after which an enqueued message is available for dequeuing.
// C# public int Delay {get;}
An integer
that indicates the duration, in seconds, after which an enqueued message is available for dequeuing.
This instance property specifies the delivery mode of the message.
// C# public OracleAQMessageDeliveryMode DeliveryMode {get;}
An OracleAQMessageDeliveryMode
enumerated value.
This instance property specifies the time when the message was enqueued.
// C# public DateTime EnqueueTime {get;}
A DateTime
object.
This instance property specifies the name of the queue that the message is moved to if it cannot be processed successfully.
// C# public string ExceptionQueue {get;}
The name of the queue that a message to is moved if it cannot be processed successfully.
This instance property specifies the duration, in seconds, for which an enqueued message is available for dequeuing before expiring.
// C# public int Expiration {get;}
An integer
that specifies the duration, in seconds, for which an enqueued message is available for dequeuing.
This instance property returns an array of message identifiers.
// ADO.NET 2.0: C# public byte[ ][ ] MessageId{get;}
A byte[ ][ ]
that specifies the message identifiers received as part of the notification.
This property specifies the message identifiers of the messages that raise the notification.
The size of the MessageId
array is 1 for regular notifications. The size of the MessageId array is 1 for grouping notifications if the notification grouping type is OracleAQNotificationGroupingType.Last
. This property is not relevant if the NotificationType
is OracleAQNotificationType.Timeout
.
This property indicates the type of notification such as regular, grouping, or timeout.
// C# public OracleAQNotificationType NotificationType {get;}
An OracleAQNotificationType
enum value.
This property specifies the ID of the message, in the last queue, that generated this message.
// C# public byte[] OriginalMessageId {get;}
A byte[]
that specifies the original message ID.
This instance property specifies the priority of the message.
// C# public int Priority {get;}
An integer
that specifies the priority of the message.
This property indicates the name of the queue that contains the message to be dequeued.
// C# public string QueueName {get;}
A string
.
This property identifies the original sender of the message.
// C# public OracleAQAgent SenderId {get;}
An OracleAQAgent
object.