public final class CompileLock extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
release()
Releases the compile lock.
|
boolean |
tryAcquire()
Acquires the compile lock.
|
public boolean tryAcquire()
true if the lock was successfully acquired,
or false if compile lock wait timeout is configured and
either the waiting time elapsed before the lock could be acquired
or the current thread was interrupted.public void release()
Lock implementation will usually impose restrictions on which
thread can release a lock (typically only the holder of the lock can release it)
and may throw an (unchecked) exception if the restriction is violated.public void close()
close in interface AutoCloseableCopyright © 2024 The Apache Software Foundation. All rights reserved.