org.mule.util.lock
Interface LockFactory

All Known Implementing Classes:
MuleLockFactory

public interface LockFactory

Factory for creating Lock instances. All mule components that require synchronization for access shared data must be synchronized using locks from the LockFactory provided by MuleContext Default LockFactory can be override by modules using registry-bootstrap.


Method Summary
 Lock createLock(String lockId)
          Provides a lock to create thread safe Mule components.
 

Method Detail

createLock

Lock createLock(String lockId)
Provides a lock to create thread safe Mule components. Always returns the same lock for a certain lockId

Parameters:
lockId - Id of the lock
Returns:
a Lock instance associated to the lockId


Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.