Class DynamicModelApplyLock

java.lang.Object
io.jmix.dynmodel.impl.cluster.DynamicModelApplyLock

@Component("dynmod_DynamicModelApplyLock") public class DynamicModelApplyLock extends Object
Entry point for the apply lock. Does nothing when cluster support is off, so the apply paths can call it unconditionally.
  • Constructor Details

    • DynamicModelApplyLock

      public DynamicModelApplyLock()
  • Method Details

    • init

      @PostConstruct protected void init()
    • acquire

      public void acquire(boolean wait)
      Takes the lock, or does nothing when cluster support is off.
      Parameters:
      wait - true to retry until the configured wait time has passed
    • release

      public void release()
      Releases the lock, or does nothing when cluster support is off.