com.alachisoft.ncache.common.monitoring.PublishCountersDataResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
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);
}
}