eXo Kernel :: Container Multi-Threaded 2.5.0-CR2

org.exoplatform.container
Class LockManager

java.lang.Object
  extended by org.exoplatform.container.LockManager

public class LockManager
extends Object

This class is used to be aware of all the Lock currently used to prevent deadlocks

Version:
$Id$
Author:
Nicolas Filotto

Method Summary
 Lock createLock()
          Gives a new Lock instance
<T> RunnableFuture<T>
createRunnableFuture(Callable<T> callable)
          Creates a new RunnableFuture instance
<T> RunnableFuture<T>
createRunnableFuture(Runnable runnable, T value)
          Creates a new RunnableFuture instance
static LockManager getInstance()
          The unique instance of the LockManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LockManager getInstance()
The unique instance of the LockManager


createLock

public Lock createLock()
Gives a new Lock instance


createRunnableFuture

public <T> RunnableFuture<T> createRunnableFuture(Runnable runnable,
                                                  T value)
Creates a new RunnableFuture instance


createRunnableFuture

public <T> RunnableFuture<T> createRunnableFuture(Callable<T> callable)
Creates a new RunnableFuture instance


eXo Kernel :: Container Multi-Threaded 2.5.0-CR2

Copyright © 2014 eXo Platform SAS. All Rights Reserved.