Class Lock.ExtendedSupplier.Wrapper<T extends Lock>
- java.lang.Object
-
- org.eclipse.rdf4j.common.concurrent.locks.Lock.ExtendedSupplier.Wrapper<T>
-
- All Implemented Interfaces:
Lock.ExtendedSupplier<T>
,Lock.Supplier<T>
- Enclosing interface:
- Lock.ExtendedSupplier<T extends Lock>
public static class Lock.ExtendedSupplier.Wrapper<T extends Lock> extends java.lang.Object implements Lock.ExtendedSupplier<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.common.concurrent.locks.Lock.ExtendedSupplier
Lock.ExtendedSupplier.Wrapper<T extends Lock>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Lock.Supplier<T>
getLockSupplier
(package private) Lock.Supplier<T>
tryLockSupplier
-
Constructor Summary
Constructors Modifier Constructor Description private
Wrapper(Lock.Supplier<T> getLockSupplier, Lock.Supplier<T> tryLockSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getLock()
T
tryLock()
-
-
-
Field Detail
-
getLockSupplier
Lock.Supplier<T extends Lock> getLockSupplier
-
tryLockSupplier
Lock.Supplier<T extends Lock> tryLockSupplier
-
-
Constructor Detail
-
Wrapper
private Wrapper(Lock.Supplier<T> getLockSupplier, Lock.Supplier<T> tryLockSupplier)
-
-
Method Detail
-
tryLock
public T tryLock()
- Specified by:
tryLock
in interfaceLock.ExtendedSupplier<T extends Lock>
-
getLock
public T getLock() throws java.lang.InterruptedException
- Specified by:
getLock
in interfaceLock.Supplier<T extends Lock>
- Throws:
java.lang.InterruptedException
-
-