Alachisoft.NCache.Common.StreamModes 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.
/*
* 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();
}
}