ehcache

net.sf.ehcache.constructs.nonstop.concurrency
Class ExplicitLockingContextThreadLocal

java.lang.Object
  extended by net.sf.ehcache.constructs.nonstop.concurrency.ExplicitLockingContextThreadLocal

public final class ExplicitLockingContextThreadLocal
extends Object

A class that maintains a thread local to keep track of any explicit locks acquired by the app thread

Author:
Abhishek Sanoujam

Constructor Summary
ExplicitLockingContextThreadLocal()
          Public constructor
 
Method Summary
 boolean areAnyExplicitLocksAcquired()
          Returns true if the thread has acquired any locks previously and not released yet
 net.sf.ehcache.constructs.nonstop.concurrency.ExplicitLockingContext getCurrentThreadLockContext()
          Returns the thread local for the current thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplicitLockingContextThreadLocal

public ExplicitLockingContextThreadLocal()
Public constructor

Method Detail

areAnyExplicitLocksAcquired

public boolean areAnyExplicitLocksAcquired()
Returns true if the thread has acquired any locks previously and not released yet

Returns:
true if the thread has acquired any locks previously and not released yet

getCurrentThreadLockContext

public net.sf.ehcache.constructs.nonstop.concurrency.ExplicitLockingContext getCurrentThreadLockContext()
Returns the thread local for the current thread

Returns:
the thread local for the current thread

ehcache

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