public final class EntityLockManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityLockManager.EntityRef |
| Modifier and Type | Method and Description |
|---|---|
static ReentrantLock |
getLock(EntityLockManager.EntityRef ref)
Gets a lock for the given entity.
|
static Collection<Lock> |
lock(Collection<EntityLockManager.EntityRef> refs)
Batch-lock entities of a given type
|
static void |
release(Collection<Lock> locks)
Releases the given locks
|
public static ReentrantLock getLock(EntityLockManager.EntityRef ref)
type - id - public static Collection<Lock> lock(Collection<EntityLockManager.EntityRef> refs)
type - ids - public static void release(Collection<Lock> locks)
locks - Non-null collection of non-null locksCopyright © 2010–2017 Henix, henix.fr. All rights reserved.