Annotation Interface 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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    The type of command lock.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the type of lock to acquire.
  • Element Details