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

Alachisoft.NCache.Common.Messaging.MessageFailureReason Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
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];
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy