Package org.glassfish.api.admin
Annotation Type CommandLock
-
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface CommandLock
Annotation used to indicate what type of lock to acquire before executing an admin command. By default (witout this annotation), admin commands acquire a shared lock, allowing multiple admin commands to execute in parallel. Some commands, such as the synchronization command and the quiesce command require the exclusive lock to prevent any other admin commands from executing. Admin commands that are "read-only" and don't change any configuration state don't need any lock.- Author:
- Bill Shannon
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description CommandLock.LockType
value
Returns the type of lock to acquire.
-
-
-
Element Detail
-
value
CommandLock.LockType value
Returns the type of lock to acquire.- Returns:
- the lock type
-
-