OracleAQQueue(string, OracleConnection, OracleAQMessageType, string)
This constructor takes a queue name, connection, message type enumeration, and UDT type name to initialize a queue object. The connection does not need to be open during the queue object construction.
Declaration
// C# public OracleAQQueue(string name, OracleConnection con, OracleAQMessageType messageType, string udtTypeName);
Parameters
-
nameThe name of the queue as specified in the database.
-
conAn
OracleConnectionobject that is used to connect to the queue. -
messageTypeAn
OracleAQMessageTypeenumeration specifying the type of the message that is enqueued or dequeued from this queue. -
udtTypeNameThe name of the database object type used if the
messageTypeis UDT. TheudtTypeNameparameter represents the type on which the queue is based.
Exceptions
ArgumentNullException - The connection is null or the queue name is null.
ArgumentException - The queue name is empty or the specified messageType is not valid.
Remarks
Creating an OracleAQQueue object does not check for the existence of the queue in the database.