Inside Coldfusion MX
| <cflock timeout = "timeout in seconds " scope = "Application or Server or Session" name = "lockname" throwOnTimeout = "Yes" or "No" type = "readOnly" or "exclusive"> <!--- CFML to be synchronized ---> </cflock> Description
Ensures the integrity of shared data. Instantiates the following kinds of locks:
Attributes
timeout (Required) Maximum length of time to wait to obtain a lock. scope (Optional) Mutually exclusive with the name attribute. Options are Application, Server, or Session. name (Optional) Lock names are shared among applications and user sessions so that a lock can be used in different parts of an application. Only one request can execute within a given name. throwOnTimeout (Optional) Default: Yes
type (Optional) Default: exclusive
|