net.sf.javagimmicks.concurrent.locks.MultiLockProviderFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks-concurrent Show documentation
Show all versions of gimmicks-concurrent Show documentation
Utilities for multi-threaded programming
The newest version!
package net.sf.javagimmicks.concurrent.locks;
import java.util.HashMap;
import java.util.TreeMap;
import net.sf.javagimmicks.util.Supplier;
/**
* Serves as central {@link Supplier} for {@link MultiLockProvider} instances.
* Instances can only be retrieved by the static getters
* {@link #getHashBasedInstance()} and {@link #getTreeBasedInstance()}.
*
* @param
* The type of the internally used resource identifiers
*/
public class MultiLockProviderFactory implements Supplier>
{
private static final MultiLockProviderFactory