Package org.epics.pvaccess.impl.remote
Enum QoS
- java.lang.Object
-
- java.lang.Enum<QoS>
-
- org.epics.pvaccess.impl.remote.QoS
-
- All Implemented Interfaces:
Serializable
,Comparable<QoS>
public enum QoS extends Enum<QoS>
QoS bit-mask values.- Version:
- $Id$
- Author:
- Matej Sekoranja
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
Default behavior.DESTROY
Destroy option.GET
Get.GET_PUT
Get-put.INIT
Initialize option.PROCESS
Process option.REPLY_REQUIRED
Require reply (acknowledgment for reliable operation).UNUSED_0
Best-effort option (no reply).UNUSED_1
Share data option.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaskValue()
Get bit-mask value of this option.boolean
isSet(int qos)
Check if option is set.static QoS
valueOf(String name)
Returns the enum constant of this type with the specified name.static QoS[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final QoS DEFAULT
Default behavior.
-
REPLY_REQUIRED
public static final QoS REPLY_REQUIRED
Require reply (acknowledgment for reliable operation).
-
UNUSED_0
public static final QoS UNUSED_0
Best-effort option (no reply).
-
PROCESS
public static final QoS PROCESS
Process option.
-
INIT
public static final QoS INIT
Initialize option.
-
DESTROY
public static final QoS DESTROY
Destroy option.
-
UNUSED_1
public static final QoS UNUSED_1
Share data option.
-
GET
public static final QoS GET
Get.
-
GET_PUT
public static final QoS GET_PUT
Get-put.
-
-
Method Detail
-
values
public static QoS[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QoS c : QoS.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QoS valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMaskValue
public int getMaskValue()
Get bit-mask value of this option.- Returns:
- bit-mask value.
-
isSet
public boolean isSet(int qos)
Check if option is set.- Parameters:
qos
- QoS options to check.- Returns:
true
if option is set.
-
-