18 lines
362 B
Java
18 lines
362 B
Java
package com.tridium.util.backport.concurrent.locks;
|
|
|
|
import com.tridium.util.backport.concurrent.TimeUnit;
|
|
|
|
public interface Lock {
|
|
void lock();
|
|
|
|
void lockInterruptibly() throws InterruptedException;
|
|
|
|
Condition newCondition();
|
|
|
|
boolean tryLock();
|
|
|
|
boolean tryLock(long j, TimeUnit timeUnit) throws InterruptedException;
|
|
|
|
void unlock();
|
|
}
|