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

Alachisoft.NCache.Common.Enum.LoaderStatus Maven / Gradle / Ivy

package Alachisoft.NCache.Common.Enum;

public enum LoaderStatus
{
    Pending(0),
    Assigned(1),
    Running(2),
    Completed(3),
    Interrupted(4);

    private int intValue;
    private static java.util.HashMap mappings;
    private static java.util.HashMap getMappings()
    {
        if (mappings == null)
        {
            synchronized (LoaderStatus.class)
            {
                if (mappings == null)
                {
                    mappings = new java.util.HashMap();
                }
            }
        }
        return mappings;
    }

    private LoaderStatus(int value)
    {
        intValue = value;
        LoaderStatus.getMappings().put(value, this);
    }

    public int getValue()
    {
        return intValue;
    }

    public static LoaderStatus forValue(int value)
    {
        return getMappings().get(value);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy