|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.resource.locking.LockPriority
public final class LockPriority
A priority for lock requests.
Higher priorities (which can be tested with isHigherThan(LockPriority)) can take away (preempt) existing
locks with lower priorities.
| Field Summary | |
|---|---|
static LockPriority |
DEFAULT
Constant for default lock priority. |
static LockPriority |
HIGHEST
Constant for highest lock priority. |
static int |
HIGHEST_VALUE
The nominal value of the highest priority. |
static LockPriority |
LOWEST
Constant for lowest lock priority. |
static int |
LOWEST_VALUE
The nominal value of the lowest priority. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
isHigherThan(LockPriority other)
Return true if this priority is higher than the other priority, i.e. if this priority can preempt locks taken with the other priority, for example. |
String |
toString()
|
int |
value()
|
static LockPriority |
valueOf(int priority)
Constructs a new LockPriority from a integer value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HIGHEST_VALUE
public static final int LOWEST_VALUE
public static final LockPriority HIGHEST
public static final LockPriority LOWEST
public static final LockPriority DEFAULT
| Method Detail |
|---|
public static LockPriority valueOf(int priority)
priority - Priority range 100 (lowest priority) ... 10 (highest priority)
public boolean isHigherThan(LockPriority other)
other - another priority
public int value()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||