public abstract static class AgentBuilder.CircularityLock.WithInnerClassLoadingLock extends Object implements AgentBuilder.CircularityLock
Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.CircularityLock.WithInnerClassLoadingLock.TrivialLock
A trivial lock that monitors if a class is currently loaded by the current thread.
|
AgentBuilder.CircularityLock.Default, AgentBuilder.CircularityLock.Global, AgentBuilder.CircularityLock.Inactive, AgentBuilder.CircularityLock.WithInnerClassLoadingLock
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_SIZE
The default size of the global class loading lock array.
|
Modifier | Constructor and Description |
---|---|
protected |
WithInnerClassLoadingLock(int size)
Creates a circularity lock with a global outer lock.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acquire()
Attempts to acquire a circularity lock.
|
protected abstract boolean |
doAcquire()
Acquires the actual lock for the current thread.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
protected static final int DEFAULT_SIZE
protected WithInnerClassLoadingLock(int size)
size
- The amount of locks used in parallel or 0
if no global locks should be used.public boolean acquire()
acquire
in interface AgentBuilder.CircularityLock
true
if the lock was acquired successfully, false
if it is already hold.protected abstract boolean doAcquire()
true
if the lock was acquired successfully, false
if it is already hold.Copyright © 2014–2025. All rights reserved.