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

com.github.paganini2008.devtools.multithreads.latch.Latch Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
package com.github.paganini2008.devtools.multithreads.latch;

import java.util.concurrent.TimeUnit;

/**
 * 
 * Latch
 * 
 * @author Fred Feng
 * @revised 2019-05
 * @created 2014-03
 * @version 1.0
 */
public interface Latch {

	long availablePermits();

	boolean acquire();
	
	boolean tryAcquire();

	boolean acquire(long timeout, TimeUnit timeUnit);

	void release();

	boolean isLocked();

	long join();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy