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

Alachisoft.NCache.Common.StreamModes Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Alachisoft.NCache.Common;

/**
 * Represents the modes for opening a cache stream.
 */
public enum StreamModes {

    /**
     * Stream read mode without acquiring reader lock.
     */
    Read,
    /**
     * Stream read mode by acquiring reader lock.
     */
    ReadWithoutLock,

    /**
     * Stream mode for writing/updating the stream. Writer lock should be acquired.
     */
    Write;

    public static StreamModes forValue(int value) {
        return values()[value];
    }

    public int getValue() {
        return this.ordinal();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy