dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleQueueMessageProperties Class / Expiration Property

In This Topic
Expiration Property
In This Topic
Specifies the expiration of the message. It determines, in seconds, the duration the message is available for dequeuing. Default is -1.
Syntax
'Declaration
 
Public Property Expiration As Integer
 

Property Value

The number of seconds message remains in OracleQueueMessageState.Ready state.
Remarks

This parameter is an offset from the time the message is ready for dequeue. Expiration processing requires the queue monitor to be running. However the queue monitor is started automatically by the system if needed.

If Expiration = -1 the message does not expire.

If the message is not dequeued before it expires, then it is moved to the exception queue in the OracleQueueMessageState.Expired state.

See Also