org.mule.util.lock
Interface LockProvider

All Known Implementing Classes:
SingleServerLockProvider

public interface LockProvider

Provides abstraction in the creation and destruction of Mule locks. LockFactory uses instances of this interface to create and destroy locks. Lock implementation can be changed by replacing the LockProvider in the mule registry.


Method Summary
 Lock createLock(String lockId)
          Returns an instance of a Lock.
 void destroyLock(Lock lock)
          Destroys a previously created Lock using createLock(java.lang.String)
 

Method Detail

createLock

Lock createLock(String lockId)
Returns an instance of a Lock.

Parameters:
lockId - id that identifies the Lock instance
Returns:
a Lock instance related to the lockId

destroyLock

void destroyLock(Lock lock)
Destroys a previously created Lock using createLock(java.lang.String)

Parameters:
lock - Lock instance previously created


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