public abstract class ModelLockProvider
extends java.lang.Object
Constructor and Description |
---|
ModelLockProvider() |
Modifier and Type | Method and Description |
---|---|
static ModelLockProvider |
getInstance()
Returns configured instance of
ModelLockProvider . |
abstract java.util.concurrent.locks.Lock |
getLock(org.eclipse.emf.ecore.EObject object)
Returns a lock object by the specified object.
|
abstract java.util.concurrent.TimeUnit |
getTimeUnit(org.eclipse.emf.ecore.EObject object)
Returns time unit of the time that will be used to try lock.
|
abstract long |
getTryLockTime(org.eclipse.emf.ecore.EObject object)
Returns time that will be used to try lock.
|
static void |
setInstance(ModelLockProvider instance)
Configures single instance of
ModelLockProvider . |
public static ModelLockProvider getInstance()
ModelLockProvider
.public static void setInstance(ModelLockProvider instance)
ModelLockProvider
.instance
- new instance.public abstract java.util.concurrent.locks.Lock getLock(org.eclipse.emf.ecore.EObject object)
object
- an object.public abstract long getTryLockTime(org.eclipse.emf.ecore.EObject object)
object
- an object.public abstract java.util.concurrent.TimeUnit getTimeUnit(org.eclipse.emf.ecore.EObject object)
object
- an object.