LockManager.@Deprecated
public interface LockService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<io.jmix.core.pessimisticlocking.LockInfo> |
getCurrentLocks()
Deprecated.
List of current locks
|
io.jmix.core.pessimisticlocking.LockInfo |
getLockInfo(java.lang.String name,
java.lang.String id)
Deprecated.
Get locking status for particular object
|
io.jmix.core.pessimisticlocking.LockInfo |
lock(io.jmix.core.Entity entity)
Deprecated.
Try to lock an entity.
|
io.jmix.core.pessimisticlocking.LockInfo |
lock(java.lang.String name,
java.lang.String id)
Deprecated.
Try to lock an arbitrary object.
|
void |
reloadConfiguration()
Deprecated.
|
void |
unlock(io.jmix.core.Entity entity)
Deprecated.
Unlock an entity.
|
void |
unlock(java.lang.String name,
java.lang.String id)
Deprecated.
Unlock an arbitrary object.
|
static final java.lang.String NAME
@Nullable
io.jmix.core.pessimisticlocking.LockInfo lock(java.lang.String name,
java.lang.String id)
name - locking object nameid - locking object IDLockNotSupported instance in case of locking is not configured for this object,LockInfo instance in case of this object is already locked by someone@Nullable io.jmix.core.pessimisticlocking.LockInfo lock(io.jmix.core.Entity entity)
entity - entity instanceLockNotSupported instance in case of locking is not configured for this entity,LockInfo instance in case of this entity is already locked by someonevoid unlock(java.lang.String name,
java.lang.String id)
name - locking object nameid - locking object IDvoid unlock(io.jmix.core.Entity entity)
entity - entity instance@Nullable
io.jmix.core.pessimisticlocking.LockInfo getLockInfo(java.lang.String name,
java.lang.String id)
name - locking object nameid - locking object IDLockNotSupported instance in case of locking is not configured for this object,LockInfo instance in case of this object is locked by someonejava.util.List<io.jmix.core.pessimisticlocking.LockInfo> getCurrentLocks()
void reloadConfiguration()