public abstract class AQNotificationEvent
extends java.util.EventObject
The AQNotificationEvent provides information about the new message that has been enqueued.
| Modifier and Type | Class and Description |
|---|---|
static class |
AQNotificationEvent.AdditionalEventType |
static class |
AQNotificationEvent.EventType |
| Modifier | Constructor and Description |
|---|---|
protected |
AQNotificationEvent(java.lang.Object source) |
| Modifier and Type | Method and Description |
|---|---|
abstract AQNotificationEvent.AdditionalEventType |
getAdditionalEventType()
Retrieve the additional event type.
|
abstract java.lang.String |
getConnectionInformation()
Retrieves a description of the TCP connection on which
the notification was received.
|
abstract java.lang.String |
getConsumerName()
Retrieves the name of the consumer.
|
abstract AQNotificationEvent.EventType |
getEventType()
Retrieve the event type.
|
abstract byte[] |
getMessageId()
Retrieves the ID of the new message.
|
abstract AQMessageProperties |
getMessageProperties()
Retrieves the properties of the new message.
|
abstract byte[] |
getPayload()
Retrieves the payload of the new message.
|
abstract java.lang.String |
getQueueName()
Retrieves the name of the queue.
|
abstract java.lang.String |
getRegistration()
Retrieves the registration name which is the name that you provided
when you registered for AQ notification with the
registerAQNotification
method. |
abstract java.lang.String |
toString() |
public abstract AQMessageProperties getMessageProperties() throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract java.lang.String getRegistration()
throws java.sql.SQLException
registerAQNotification
method.
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").
java.sql.SQLExceptionpublic abstract byte[] getPayload()
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract java.lang.String getQueueName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract byte[] getMessageId()
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract java.lang.String getConsumerName()
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract java.lang.String getConnectionInformation()
public abstract AQNotificationEvent.EventType getEventType()
public abstract AQNotificationEvent.AdditionalEventType getAdditionalEventType()
public abstract java.lang.String toString()
toString in class java.util.EventObject