Package net.bytebuddy.agent.builder
Enum AgentBuilder.CircularityLock.Inactive
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.CircularityLock.Inactive>
-
- net.bytebuddy.agent.builder.AgentBuilder.CircularityLock.Inactive
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.CircularityLock.Inactive>
,AgentBuilder.CircularityLock
- Enclosing interface:
- AgentBuilder.CircularityLock
public static enum AgentBuilder.CircularityLock.Inactive extends java.lang.Enum<AgentBuilder.CircularityLock.Inactive> implements AgentBuilder.CircularityLock
An inactive circularity lock which is always acquirable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.CircularityLock
AgentBuilder.CircularityLock.Default, AgentBuilder.CircularityLock.Global, AgentBuilder.CircularityLock.Inactive
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Inactive()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acquire()
Attempts to acquire a circularity lock.void
release()
Releases the circularity lock if it is currently acquired.static AgentBuilder.CircularityLock.Inactive
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AgentBuilder.CircularityLock.Inactive[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final AgentBuilder.CircularityLock.Inactive INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static AgentBuilder.CircularityLock.Inactive[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AgentBuilder.CircularityLock.Inactive c : AgentBuilder.CircularityLock.Inactive.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentBuilder.CircularityLock.Inactive valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
acquire
public boolean acquire()
Attempts to acquire a circularity lock.- Specified by:
acquire
in interfaceAgentBuilder.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 interfaceAgentBuilder.CircularityLock
-
-