|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.cluster.AbstractLock
@Module public abstract class AbstractLock
Implements the distributed lock
Constructor Summary | |
---|---|
AbstractLock()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of the lock. |
void |
init()
Initialize the lock. |
void |
lock()
|
void |
lockInterruptibly()
|
java.util.concurrent.locks.Condition |
newCondition()
|
void |
setGuid(java.lang.String guid)
|
void |
setName(java.lang.String name)
Assigns the name of the lock. |
java.lang.String |
toString()
|
boolean |
tryLock()
|
boolean |
tryLock(long time,
java.util.concurrent.TimeUnit unit)
|
void |
unlock()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractLock()
Method Detail |
---|
public java.lang.String getName()
@Configurable public void setName(java.lang.String name)
public void setGuid(java.lang.String guid)
public void lock()
lock
in interface java.util.concurrent.locks.Lock
public void lockInterruptibly() throws java.lang.InterruptedException
lockInterruptibly
in interface java.util.concurrent.locks.Lock
java.lang.InterruptedException
public boolean tryLock()
tryLock
in interface java.util.concurrent.locks.Lock
public boolean tryLock(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
tryLock
in interface java.util.concurrent.locks.Lock
java.lang.InterruptedException
public void unlock()
unlock
in interface java.util.concurrent.locks.Lock
public java.util.concurrent.locks.Condition newCondition()
newCondition
in interface java.util.concurrent.locks.Lock
@PostConstruct public void init()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |