|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.EventObject
oracle.jdbc.aq.AQNotificationEvent
public abstract class AQNotificationEvent
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.
Nested Class Summary | |
---|---|
static class |
AQNotificationEvent.AdditionalEventType |
static class |
AQNotificationEvent.EventType |
Field Summary | |
---|---|
static boolean |
TRACE |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
protected |
AQNotificationEvent(Object source) |
Method Summary | |
---|---|
abstract AQNotificationEvent.AdditionalEventType |
getAdditionalEventType() Retrieve the additional event type. |
abstract String |
getConnectionInformation() Retrieves a description of the TCP connection on which the notification was received. |
abstract 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 String |
getQueueName() Retrieves the name of the queue. |
abstract String |
getRegistration() Retrieves the registration name which is the name that you provided when you registered for AQ notification with the registerAQNotification method. |
abstract String |
toString() |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean TRACE
Constructor Detail |
---|
protected AQNotificationEvent(Object source)
Method Detail |
---|
public abstract AQMessageProperties getMessageProperties() throws SQLException
SQLException
public abstract String getRegistration() throws 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").
SQLException
public abstract byte[] getPayload() throws SQLException
SQLException
public abstract String getQueueName() throws SQLException
SQLException
public abstract byte[] getMessageId() throws SQLException
SQLException
public abstract String getConsumerName() throws SQLException
SQLException
public abstract String getConnectionInformation()
public abstract AQNotificationEvent.EventType getEventType()
public abstract AQNotificationEvent.AdditionalEventType getAdditionalEventType()
public abstract String toString()
toString
in class EventObject
|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |