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

com.alachisoft.ncache.client.LogLevel Maven / Gradle / Ivy

package com.alachisoft.ncache.client;

/**
 * Defines the level of logging you want to use.
 */
public enum LogLevel {

    /**
     * Info level describes some useful information about any operation performed on cache.
     */
    Info,
    /**
     * This log flag gives the cause of errors that are raised during operation execution.
     */
    Error,
    /**
     * This log option prints detailed information about any operations in cache.
     */
    Debug;
    /**
     * retreives the enum constant of the specified value, if exists.
     * @param value enum constant index
     * @return enum constant
     */
    public static LogLevel forValue(int value) {
        return values()[value];
    }
     /**
     * 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();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy