setDefaultLockTimeout

setDefaultLockTimeout(timeout: Integer): Integer;

The setDefaultLockTimeout method of the Process class programmatically changes the default lock timeout period for the receiving process.

The value of the timeout parameter can be an explicit number of milliseconds (for example, specify a value of 30000 for 30 seconds), or it can be one of the predefined global constants defined in the RootSchema LockTimeouts category; that is, one of:

When the setDefaultLockTimeout method is called, the parameter value is used for the timeout for all implicit locks and locks obtained by the Object class exclusiveLock, sharedLock, reserveLock, and updateLock methods.

This method returns the current process lock timeout (before the new value specified in the timeout parameter is saved).

By default (that is, if you do not call this method), the default lock timeout for all processes is defined by the value of the ServerTimeout parameter in the [JadeServer] section of the JADE initialization file.

2016.0.01 and higher