Package oracle.jdbc.aq
Class AQNotificationEvent
java.lang.Object
java.util.EventObject
oracle.jdbc.aq.AQNotificationEvent
- All Implemented Interfaces:
Serializable
An AQNotificationEvent will be created whenever a new message is enqueued
in a queue for which you have registered your interest (see
OracleConnection.registerAQNotification).
The AQNotificationEvent provides information about the new message that has been enqueued.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the additional event type.abstract StringRetrieves a description of the TCP connection on which the notification was received.abstract StringRetrieves the name of the consumer.abstract AQNotificationEvent.EventTypeRetrieve the event type.abstract byte[]Retrieves the ID of the new message.abstract AQMessagePropertiesRetrieves the properties of the new message.abstract byte[]Retrieves the payload of the new message.abstract StringRetrieves the name of the queue.abstract StringRetrieves the registration name which is the name that you provided when you registered for AQ notification with theregisterAQNotificationmethod.abstract StringtoString()Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
AQNotificationEvent
-
-
Method Details
-
getMessageProperties
Retrieves the properties of the new message.- Throws:
SQLException
-
getRegistration
Retrieves the registration name which is the name that you provided when you registered for AQ notification with theregisterAQNotificationmethod.In the case of a single consumer queue, the registration name is the name of the queue whereas in the case of a multi-consumer queue, it's the name of the queue plus the name of the consumer ("SCOTT.MY_QUEUE:RECEIVER").
- Throws:
SQLException
-
getPayload
Retrieves the payload of the new message. Note that this feature only works with RAW queues and that it needs to be activated with the OracleConnection.NTF_AQ_PAYLOAD option during registration.- Throws:
SQLException
-
getQueueName
Retrieves the name of the queue.- Throws:
SQLException
-
getMessageId
Retrieves the ID of the new message.- Throws:
SQLException
-
getConsumerName
Retrieves the name of the consumer. In the case of a multi-consumer queue, this retrieves the name of the consumer upon which you register for AQ notification.- Throws:
SQLException
-
getConnectionInformation
Retrieves a description of the TCP connection on which the notification was received. -
getEventType
Retrieve the event type. -
getAdditionalEventType
Retrieve the additional event type. -
toString
- Overrides:
toStringin classEventObject
-