public static class AgentBuilder.CircularityLock.Default extends Object implements AgentBuilder.CircularityLock
AgentBuilder.CircularityLock.Default, AgentBuilder.CircularityLock.Global, AgentBuilder.CircularityLock.Inactive
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
boolean |
acquire()
Attempts to acquire a circularity lock.
|
protected boolean |
isLocked()
Returns
true if the current thread is currently locked. |
void |
release()
Releases the circularity lock if it is currently acquired.
|
public boolean acquire()
acquire
in interface AgentBuilder.CircularityLock
true
if the lock was acquired successfully, false
if it is already hold.public void release()
release
in interface AgentBuilder.CircularityLock
protected boolean isLocked()
true
if the current thread is currently locked.true
if the current thread is currently locked.Copyright © 2014–2024. All rights reserved.