public abstract class HabaneroLock extends Object implements Lock
isolated
construct.
Locks can support read or write mode.
Modifier and Type | Class and Description |
---|---|
static class |
HabaneroLock.ReadWriteMode |
Modifier | Constructor and Description |
---|---|
protected |
HabaneroLock(int id,
HabaneroLock.ReadWriteMode mode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
int |
id() |
void |
lockInterruptibly()
Not supported.
|
HabaneroLock.ReadWriteMode |
mode() |
Condition |
newCondition()
Not supported.
|
String |
toString() |
boolean |
tryLock()
Not supported.
|
boolean |
tryLock(long time,
TimeUnit unit)
Not supported.
|
protected HabaneroLock(int id, HabaneroLock.ReadWriteMode mode)
public int id()
public HabaneroLock.ReadWriteMode mode()
public void lockInterruptibly() throws InterruptedException
lockInterruptibly
in interface Lock
InterruptedException
public boolean tryLock(long time, TimeUnit unit) throws InterruptedException
tryLock
in interface Lock
InterruptedException
public Condition newCondition()
newCondition
in interface Lock
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.