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

com.github.akurilov.commons.collection.OptLockBuffer Maven / Gradle / Ivy

There is a newer version: 2.3.6
Show newest version
package com.github.akurilov.commons.collection;

import java.util.List;
import java.util.concurrent.locks.Lock;

/**
 * The use case for the optionally locking buffer is to share the buffer of the items between the threads in the
 * non-blocking manner (using a {@link java.util.concurrent.locks.Lock#tryLock} method which allows to try to get a lock
 * w/o waiting).
 */
public interface OptLockBuffer
extends List, Lock {

	/**
	 * Remove the elements in the specified range
	 * @see java.util.ArrayList#removeRange(int, int)
	 */
	void removeRange(int fromIndex, int toIndex);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy