Package org.eclipse.jetty.util.thread
Class Locker
java.lang.Object
org.eclipse.jetty.util.thread.Locker
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Convenience auto closeable ReentrantLock wrapper.
try (Locker.Lock lock = locker.lock())
{
// something
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.classDeprecated. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Locker
public Locker()Deprecated.
-
-
Method Details
-
lock
Deprecated.Acquires the lock.
- Returns:
- the lock to unlock
-
lockIfNotHeld
Deprecated.uselock()instead- Returns:
- the lock to unlock
-
isLocked
public boolean isLocked()Deprecated.- Returns:
- whether this lock has been acquired
-
newCondition
Deprecated.- Returns:
- a
Conditionassociated with this lock
-