org.mule.util.lock
Class SingleServerLockProvider

java.lang.Object
  extended by org.mule.util.lock.SingleServerLockProvider
All Implemented Interfaces:
LockProvider

public class SingleServerLockProvider
extends Object
implements LockProvider

LockProvider implementation for applications running in a single mule server


Constructor Summary
SingleServerLockProvider()
           
 
Method Summary
 Lock createLock(String lockId)
          Returns an instance of a Lock.
 void destroyLock(Lock lock)
          Destroys a previously created Lock using LockProvider.createLock(java.lang.String)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleServerLockProvider

public SingleServerLockProvider()
Method Detail

createLock

public Lock createLock(String lockId)
Description copied from interface: LockProvider
Returns an instance of a Lock.

Specified by:
createLock in interface LockProvider
Parameters:
lockId - id that identifies the Lock instance
Returns:
a Lock instance related to the lockId

destroyLock

public void destroyLock(Lock lock)
Description copied from interface: LockProvider
Destroys a previously created Lock using LockProvider.createLock(java.lang.String)

Specified by:
destroyLock in interface LockProvider
Parameters:
lock - Lock instance previously created


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