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

com.alachisoft.ncache.common.monitoring.PublishCountersDataResult Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package com.alachisoft.ncache.common.monitoring;

public enum PublishCountersDataResult
{
    DataPersistedSuccessfully(0),
    CountersMetaDataNotPersisted(1),
    CountersSessionExpired(2),
    MetricServerNotInitialized(3);

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

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

    public int getValue()
    {
        return intValue;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy