Enum AgentBuilder.CircularityLock.Inactive

java.lang.Object
java.lang.Enum<AgentBuilder.CircularityLock.Inactive>
net.bytebuddy.agent.builder.AgentBuilder.CircularityLock.Inactive
All Implemented Interfaces:
Serializable, Comparable<AgentBuilder.CircularityLock.Inactive>, java.lang.constant.Constable, AgentBuilder.CircularityLock
Enclosing interface:
AgentBuilder.CircularityLock

public static enum AgentBuilder.CircularityLock.Inactive extends Enum<AgentBuilder.CircularityLock.Inactive> implements AgentBuilder.CircularityLock
An inactive circularity lock which is always acquirable.
  • Enum Constant Details

  • Constructor Details

    • Inactive

      private Inactive()
  • Method Details

    • values

      public static AgentBuilder.CircularityLock.Inactive[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AgentBuilder.CircularityLock.Inactive valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • acquire

      public boolean acquire()
      Attempts to acquire a circularity lock.
      Specified by:
      acquire in interface AgentBuilder.CircularityLock
      Returns:
      true if the lock was acquired successfully, false if it is already hold.
    • release

      public void release()
      Releases the circularity lock if it is currently acquired.
      Specified by:
      release in interface AgentBuilder.CircularityLock