Alachisoft.NCache.Common.Messaging.MessageFailureReason 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 Alachisoft.NCache.Common.Messaging;
public enum MessageFailureReason
{
/**
Failed because it could not be delivered within expiration time.
*/
Expired,
/**
Failed because it got evicted before delivery.
*/
Evicted;
/**
* Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
* @return enum constant index
*/
public int getValue()
{
return this.ordinal();
}
/**
* retreives the enum constant of the specified value, if exists.
* @param value enum constant index
* @return enum constant
*/
public static MessageFailureReason forValue(int value)
{
return values()[value];
}
}