public interface ISynchronizable
In order to reduce the probability of dead locks clients should synchronize their access to these objects by using the provided lock object rather than the object itself.
Managing objects can use the setLockObject
method in order to
synchronize whole sets of objects.
Modifier and Type | Method and Description |
---|---|
Object |
getLockObject()
Returns the lock object or
null if there is none. |
void |
setLockObject(Object lockObject)
Sets the lock object for this object.
|
void setLockObject(Object lockObject)
null
subsequent calls to specified methods of this object
are synchronized on this lock object. Which methods are synchronized is
specified by the implementer.
You should not override an existing lock object unless you own that lock object yourself. Use the existing lock object instead.
lockObject
- the lock object. May be null
.Object getLockObject()
null
if there is none. Clients
should use the lock object in order to synchronize concurrent access to
the implementer.null
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.