|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Activity>
org.ogf.saga.stream.Activity
public enum Activity
Flags for activities of a stream. An application can poll for these events or get asynchronous notification of these events by using metrics. These flags are meant to be or-ed together, resulting in an integer, so methods are added to test for presence and or-ing.
| Enum Constant Summary | |
|---|---|
EXCEPTION
An error occured on the stream. |
|
READ
Data are available on the stream. |
|
WRITE
The stream is accepting data. |
|
| Method Summary | |
|---|---|
int |
getValue()
Returns the integer value of this enumeration literal. |
boolean |
isSet(int val)
Tests for the presence of this flag in the specified value. |
int |
or(Activity val)
Returns the result of or-ing this flag into another. |
int |
or(int val)
Returns the result of or-ing this flag into an integer. |
static Activity |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Activity[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Activity READ
public static final Activity WRITE
public static final Activity EXCEPTION
| Method Detail |
|---|
public static Activity[] values()
for (Activity c : Activity.values()) System.out.println(c);
public static Activity valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getValue()
public int or(int val)
val - the value to OR this enumeration value into.
public int or(Activity val)
val - the value to OR this enumeration value into.
public boolean isSet(int val)
val - the value.
true if this flag is present.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||