public enum ConsistencyModifier extends Enum<ConsistencyModifier>
TitanSchemaElements which then applies to all instances.
Consistency modifiers are installed on schema elements via TitanManagement.setConsistency(TitanSchemaElement, ConsistencyModifier)
and can be read using TitanManagement.getConsistency(TitanSchemaElement).| Enum Constant and Description |
|---|
DEFAULT
Uses the default consistency model guaranteed by the enclosing transaction against the configured
storage backend.
|
FORK
Causes Titan to delete and add a new edge/property instead of overwriting an existing one, hence avoiding potential
concurrent write conflicts.
|
LOCK
Locks will be explicitly acquired to guarantee consistency if the storage backend supports locks.
|
| Modifier and Type | Method and Description |
|---|---|
static ConsistencyModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistencyModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsistencyModifier DEFAULT
public static final ConsistencyModifier LOCK
public static final ConsistencyModifier FORK
public static ConsistencyModifier[] values()
for (ConsistencyModifier c : ConsistencyModifier.values()) System.out.println(c);
public static ConsistencyModifier valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2012–2015. All rights reserved.