|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface DistributedStaticMutexLockAnnotation to declare a static known lock which must be done before entering a method.
| Required Element Summary | |
|---|---|
String |
mutex
Lock key for the mutex, for example "queue-lock". |
| Optional Element Summary | |
|---|---|
int |
lockOrderNumber
If multiple locks should be done, than the lock order number (=lock priority) defines in which order the locks should be done. |
long |
maxLockWaitTime
The maximum amount of milliseconds to wait for get the mutex locked. |
| Element Detail |
|---|
public abstract String mutex
public abstract long maxLockWaitTime
public abstract int lockOrderNumber
Integer.MAX_VALUE. A lock order should be always
declared, as it reduces deadlock problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||