Package net.bytebuddy.agent.builder
Enum Class 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>
,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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
acquire()
Attempts to acquire a circularity lock.void
release()
Releases the circularity lock if it is currently acquired.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Inactive
private Inactive()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- 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
-