All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hibegin.common.BaseLockObject Maven / Gradle / Ivy

Go to download

Simple, flexible, less dependent, more extended. Less memory footprint, can quickly build Web project. Can quickly run embedded, Android devices

There is a newer version: 0.3.162
Show newest version
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