'Declaration Public Overloads Shared Function Listen( _ ByVal agents As OracleQueueAgentCollection, _ ByVal waitTimeout As Integer, _ ByVal listenDeliveryMode As OracleQueueDeliveryMode, _ ByRef messageDeliveryMode As OracleQueueDeliveryMode, _ ByVal connection As OracleConnection _ ) As OracleQueueAgent
Parameters
- agents
- List of agents to listen for.
- waitTimeout
- Time out for the listen call in seconds. By default, the call will block forever.
- listenDeliveryMode
- The caller specifies whether it is interested in persistent, buffered messages or both types of messages, specifying a delivery mode. (Only for Oracle 10.2 and greater.)
- messageDeliveryMode
- Returns the message type along with the queue and consumer for which there is a message (only for Oracle 10.2 and greater).
- connection
- A OracleConnection that represents the connection to an instance of Oracle server.
Return Value
Agent with a message available for consumption.