Package org.onosproject.store.service
Enum DistributedPrimitive.Type
- java.lang.Object
-
- java.lang.Enum<DistributedPrimitive.Type>
-
- org.onosproject.store.service.DistributedPrimitive.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<DistributedPrimitive.Type>
- Enclosing interface:
- DistributedPrimitive
public static enum DistributedPrimitive.Type extends Enum<DistributedPrimitive.Type>
Type of distributed primitive.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSISTENT_MAP
Map with strong consistency semantics.CONSISTENT_MULTIMAP
Consistent Multimap.CONSISTENT_TREEMAP
Tree map.COUNTER
Atomic counter.COUNTER_MAP
Atomic counter map.DOCUMENT_TREE
Document tree.EVENTUALLY_CONSISTENT_MAP
Map with eventual consistency semantics.ID_GENERATOR
Numeric ID generator.LEADER_ELECTOR
Leader elector.LOCK
Distributed lock.SET
Distributed set.TOPIC
Distributed topic.TRANSACTION_CONTEXT
Transaction Context.VALUE
Atomic value.WORK_QUEUE
Distributed work queue.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DistributedPrimitive.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static DistributedPrimitive.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSISTENT_MAP
public static final DistributedPrimitive.Type CONSISTENT_MAP
Map with strong consistency semantics.
-
EVENTUALLY_CONSISTENT_MAP
public static final DistributedPrimitive.Type EVENTUALLY_CONSISTENT_MAP
Map with eventual consistency semantics.
-
CONSISTENT_MULTIMAP
public static final DistributedPrimitive.Type CONSISTENT_MULTIMAP
Consistent Multimap.
-
SET
public static final DistributedPrimitive.Type SET
Distributed set.
-
CONSISTENT_TREEMAP
public static final DistributedPrimitive.Type CONSISTENT_TREEMAP
Tree map.
-
COUNTER
public static final DistributedPrimitive.Type COUNTER
Atomic counter.
-
ID_GENERATOR
public static final DistributedPrimitive.Type ID_GENERATOR
Numeric ID generator.
-
COUNTER_MAP
public static final DistributedPrimitive.Type COUNTER_MAP
Atomic counter map.
-
VALUE
public static final DistributedPrimitive.Type VALUE
Atomic value.
-
WORK_QUEUE
public static final DistributedPrimitive.Type WORK_QUEUE
Distributed work queue.
-
DOCUMENT_TREE
public static final DistributedPrimitive.Type DOCUMENT_TREE
Document tree.
-
TOPIC
public static final DistributedPrimitive.Type TOPIC
Distributed topic.
-
LEADER_ELECTOR
public static final DistributedPrimitive.Type LEADER_ELECTOR
Leader elector.
-
TRANSACTION_CONTEXT
public static final DistributedPrimitive.Type TRANSACTION_CONTEXT
Transaction Context.
-
LOCK
public static final DistributedPrimitive.Type LOCK
Distributed lock.
-
-
Method Detail
-
values
public static DistributedPrimitive.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 (DistributedPrimitive.Type c : DistributedPrimitive.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 DistributedPrimitive.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
-
-