Class Lock
java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.system.Lock
@BoxComponent(description="Serialize access to sections of code with named locks",
requiresBody=true)
public class Lock
extends Component
-
Nested Class Summary
Nested classes/interfaces inherited from class ortus.boxlang.runtime.components.Component
Component.BodyResult, Component.ComponentBody -
Field Summary
Fields inherited from class ortus.boxlang.runtime.components.Component
componentService, declaredAttributes, DEFAULT_RETURN, functionService, interceptorService, logger, name, runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) Ensures the integrity of shared data.Methods inherited from class ortus.boxlang.runtime.components.Component
announce, getDeclaredAttributes, getName, invoke, processBody, processBody, setName, validateAttributes
-
Constructor Details
-
Lock
public Lock()
-
-
Method Details
-
_invoke
public Component.BodyResult _invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) Ensures the integrity of shared data. Instantiates the following kinds of locks: - Exclusive allows single-thread access to the constructs - Read-only allows multiple requests to access constructs
-