com.hibegin.common.BaseLockObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simplewebserver Show documentation
Show all versions of simplewebserver Show documentation
Simple, flexible, less dependent, more extended. Less memory footprint, can quickly build Web project.
Can quickly run embedded, Android devices
package com.hibegin.common;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class BaseLockObject implements LockObject {
protected final Lock lock = new ReentrantLock();
protected final Condition condition = lock.newCondition();
@Override
public Lock getLock() {
return lock;
}
@Override
public Condition getCondition() {
return condition;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy