|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.concurrent.locks.ReentrantLock
atavism.server.util.AOLock
public class AOLock
this lock keeps track of its call stack. it can also timeout and throw an exception (to help debug deadlocks). the exception will have all locks when you call lock() it adds to the stack. when you call unlock() it removes from the stack. you can get the lock's stack by calling getStack()
Constructor Summary | |
---|---|
AOLock(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getLockName()
|
void |
lock()
|
void |
lock(long lockTimeoutMS)
|
static void |
setDeadlockTimeout(int timeoutMS)
time in MS before the deadlock code kicks in. |
void |
setName(java.lang.String name)
|
void |
unlock()
|
Methods inherited from class java.util.concurrent.locks.ReentrantLock |
---|
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lockInterruptibly, newCondition, toString, tryLock, tryLock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AOLock(java.lang.String name)
Method Detail |
---|
public void setName(java.lang.String name)
public java.lang.String getLockName()
public void lock()
lock
in interface java.util.concurrent.locks.Lock
lock
in class java.util.concurrent.locks.ReentrantLock
public void lock(long lockTimeoutMS)
public void unlock()
unlock
in interface java.util.concurrent.locks.Lock
unlock
in class java.util.concurrent.locks.ReentrantLock
public static void setDeadlockTimeout(int timeoutMS)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |