Skip Headers

Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 1 (10.1)

Part Number B10119-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

SetWait Method

Applies To

OAQ

Description

Specifies the wait time (in seconds), if there is currently no message available.

Usage

void SetWait(int duration) const throw(OException)

Arguments

duration
An integer specifying the wait time in seconds.
Remarks

Applicable only for a Dequeue operation. Possible values include :

· OAQ_DQ_WAIT_FOREVER (-1) (Default) - Wait forever.

· OAQ_DQ_NOWAIT (0) - Do not wait.