link start!
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.tridium.util.backport.concurrent.locks;
|
||||
|
||||
import com.tridium.util.backport.concurrent.TimeUnit;
|
||||
import java.util.Date;
|
||||
|
||||
public interface Condition {
|
||||
void await() throws InterruptedException;
|
||||
|
||||
boolean await(long j, TimeUnit timeUnit) throws InterruptedException;
|
||||
|
||||
void awaitUninterruptibly();
|
||||
|
||||
boolean awaitUntil(Date date) throws InterruptedException;
|
||||
|
||||
void signal();
|
||||
|
||||
void signalAll();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.tridium.util.backport.concurrent.locks;
|
||||
|
||||
public interface ReadWriteLock {
|
||||
Lock readLock();
|
||||
|
||||
Lock writeLock();
|
||||
}
|
||||
Reference in New Issue
Block a user