|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value={METHOD,PARAMETER}) public @interface DistributedDynamicMutexLockKeys
Annotation to declare a container for dynamic resolved locks to which same
default values should get applied.
Also allows to declare multiple DistributedMutexLockKeys
annotations at a parameter or method.
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. |
DistributedDynamicMutexLockKey[] |
locks
Array of of lock keys to which same default values should get applied or that should get sorted. |
long |
maxLockWaitTime
The maximum amount of milliseconds to wait for get mutexes locked. |
String |
postfix
A postfix string that should get appended to the end of the mutex lock key. |
String |
prefix
A prefix string that should get pushed before the mutex lock key. |
public abstract DistributedDynamicMutexLockKey[] locks
public abstract String prefix
locks()
array.
public abstract String postfix
locks()
array.
public abstract int lockOrderNumber
Integer.MAX_VALUE
. The
setting will only override the default setting (lock order number was not set) of
values in the locks()
array.
public abstract long maxLockWaitTime
locks()
array. Values lesser or equal to zero mean eternal wait
time. The default value is zero.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |