Package oracle.kv.pubsub
Enum StreamOperation.Type
- java.lang.Object
-
- java.lang.Enum<StreamOperation.Type>
-
- oracle.kv.pubsub.StreamOperation.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<StreamOperation.Type>
- Enclosing interface:
- StreamOperation
public static enum StreamOperation.Type extends Enum<StreamOperation.Type>
The type of the operation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE
AStreamOperation.DeleteEvent
operation.PUT
AStreamOperation.PutEvent
operation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StreamOperation.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static StreamOperation.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUT
public static final StreamOperation.Type PUT
AStreamOperation.PutEvent
operation.
-
DELETE
public static final StreamOperation.Type DELETE
AStreamOperation.DeleteEvent
operation.
-
-
Method Detail
-
values
public static StreamOperation.Type[] 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 (StreamOperation.Type c : StreamOperation.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamOperation.Type 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
-
-