java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.system.Lock

@BoxComponent(requiresBody=true) public class Lock extends Component
  • 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
      Specified by:
      _invoke in class Component
      Parameters:
      context - The context in which the Component is being invoked
      attributes - The attributes to the Component
      body - The body of the Component
      executionState - The execution state of the Component
      Returns:
      The result of the invocation