setTimeoutSecs method (DominoQuery - Java)

Sets a new value for the DominoQuery property TimeoutSecs, the maximum seconds a DQL query is allowed to run.

Defined in

DominoQuery

Syntax

void setTimeoutSecs( int timeoutSecs ) throws NotesException

Parameters

int timeoutSecs

The maximum seconds a DQL query is allowed to run.

Returned value

None

Usage

Useful to limit or expand the resources consumed by a query, to either prevent runaway queries or allow long running queries when the impact of those queries would be minimal. To return current value, use getTimeoutSecs.

Language cross-reference

TimeoutSec Property (NotesDominoQuery - LotusScript)