Package io.jmix.dynmodel.impl.cluster
Class DynamicModelApplyLock
java.lang.Object
io.jmix.dynmodel.impl.cluster.DynamicModelApplyLock
Entry point for the apply lock. Does nothing when cluster support is off, so the apply paths can
call it unconditionally.
-
Constructor Summary
Constructors -
Method Summary
-
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.
-