|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.util.ManagedLockImpl
public class ManagedLockImpl
Simple lock based on ReentrantLock
that associates a name with the lock and traces locking and unlocking.
Constructor Summary | |
---|---|
ManagedLockImpl(String name)
Ctor. |
Method Summary | |
---|---|
void |
acquireLock(StatementLockFactory statementLockFactory)
Lock. |
boolean |
isHeldByCurrentThread()
Returns true if the current thread holds the lock, or false if not. |
void |
releaseLock(StatementLockFactory statementLockFactory)
Unlock. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManagedLockImpl(String name)
name
- of lockMethod Detail |
---|
public void acquireLock(StatementLockFactory statementLockFactory)
acquireLock
in interface ManagedLock
statementLockFactory
- is the engine lock factory service that the lock can use for engine lock servicespublic void releaseLock(StatementLockFactory statementLockFactory)
releaseLock
in interface ManagedLock
statementLockFactory
- is the engine lock factory service that the lock can use for engine lock servicespublic boolean isHeldByCurrentThread()
ManagedLock
isHeldByCurrentThread
in interface ManagedLock
public String toString()
toString
in class Object
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |