public static enum AgentBuilder.CircularityLock.Inactive extends java.lang.Enum<AgentBuilder.CircularityLock.Inactive> implements AgentBuilder.CircularityLock
AgentBuilder.CircularityLock.Default, AgentBuilder.CircularityLock.Global, AgentBuilder.CircularityLock.Inactive| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and 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.
|
public static final AgentBuilder.CircularityLock.Inactive INSTANCE
public static AgentBuilder.CircularityLock.Inactive[] values()
for (AgentBuilder.CircularityLock.Inactive c : AgentBuilder.CircularityLock.Inactive.values()) System.out.println(c);
public static AgentBuilder.CircularityLock.Inactive valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean acquire()
acquire in interface AgentBuilder.CircularityLocktrue if the lock was acquired successfully, false if it is already hold.public void release()
release in interface AgentBuilder.CircularityLock