Package io.quarkus.arc
Annotation Interface Lock
Defines a concurrency lock for a bean.
The container provides a built-in interceptor for this interceptor binding. Each interceptor instance associated with a
contextual instance of an intercepted bean holds a ReadWriteLock instance with non-fair ordering policy.
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements
-
Element Details
-
value
Lock.Type value- Returns:
- the type of the lock
- Default:
- WRITE
-
time
long timeIf it's not possible to acquire the lock in the given time aLockExceptionis thrown.- Returns:
- the wait time
- See Also:
- Default:
- -1L
-
unit
TimeUnit unit- Returns:
- the wait time unit
- Default:
- MILLISECONDS
-