Package io.jmix.dynmodel.impl.cluster
Interface ClusterApplyLock
- All Known Implementing Classes:
PessimisticClusterApplyLock
public interface ClusterApplyLock
Cluster-wide lock that serializes dynamic model applies across nodes.
-
Method Summary
-
Method Details
-
acquire
void acquire(boolean wait) Takes the lock.- Parameters:
wait- true to retry until the configured wait time has passed- Throws:
DynamicModelApplyLockedException- if the lock is held by another node
-
release
void release()Releases the lock.
-