| org.jivesoftware.util.lock.LockFactory
All known Subclasses: org.jivesoftware.util.lock.LocalLockFactory,
LockFactory | public interface LockFactory (Code) | | Factory that creates new Locks for specified keys and keeps them in memory until they
are no longer needed.
author: Gaston Dombiak |
Method Summary | |
Lock | getLock(Object key) Returns an existing lock on the specified key or creates a new one if none was found. |
getLock | Lock getLock(Object key)(Code) | | Returns an existing lock on the specified key or creates a new one if none was found. This
operation should be thread safe.
Parameters: key - the object that defines the visibility or scope of the lock. an existing lock on the specified key or creates a new one if none was found. |
|
|