The global constants for lock timeouts are listed in the following table.
Global Constant | Integer Value | Description |
---|---|---|
LockTimeout_Immediate | -1 | Lock request times out immediately |
LockTimeout_Infinite | Max_Integer (#7FFFFFFF) | Lock request times out only after the number of milliseconds indicated by the Max_Integer value is reached |
LockTimeout_Process_Defined | -2 | Uses the process‑defined default lock request timeout |
LockTimeout_Server_Defined | 0 | Uses the server‑defined default |
You can set the process‑defined default lock request timeout programmatically, by calling the Process class setDefaultLockTimeout method. By default (that is, if you do not call this method), the default lock timeout for a process is the value of the ServerTimeout parameter in the [JadeServer] section of the JADE initialization file.