|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.service.StatementAgentInstanceRWLockImpl
public class StatementAgentInstanceRWLockImpl
Simple read-write lock based on ReentrantReadWriteLock
that associates a
name with the lock and traces read/write locking and unlocking.
Field Summary |
---|
Fields inherited from interface com.espertech.esper.core.service.StatementAgentInstanceLock |
---|
ACQUIRE_TEXT, ACQUIRED_TEXT, RELEASE_TEXT, RELEASED_TEXT |
Constructor Summary | |
---|---|
StatementAgentInstanceRWLockImpl(boolean isFair)
Ctor. |
Method Summary | |
---|---|
void |
acquireReadLock()
Lock read lock. |
void |
acquireWriteLock(StatementLockFactory statementLockFactory)
Lock write lock. |
void |
releaseReadLock()
Unlock read lock. |
void |
releaseWriteLock(StatementLockFactory statementLockFactory)
Unlock write lock. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatementAgentInstanceRWLockImpl(boolean isFair)
isFair
- true if a fair lock, false if notMethod Detail |
---|
public void acquireWriteLock(StatementLockFactory statementLockFactory)
acquireWriteLock
in interface StatementAgentInstanceLock
public void releaseWriteLock(StatementLockFactory statementLockFactory)
releaseWriteLock
in interface StatementAgentInstanceLock
public void acquireReadLock()
acquireReadLock
in interface StatementAgentInstanceLock
public void releaseReadLock()
releaseReadLock
in interface StatementAgentInstanceLock
public java.lang.String toString()
toString
in class java.lang.Object
|
© 2006-2011 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 |