public static enum Transaction.READ_WRITE_BEHAVIOR extends Enum<Transaction.READ_WRITE_BEHAVIOR> implements Consumer<Transaction>
Transaction.onReadWrite(Consumer)
.Enum Constant and Description |
---|
AUTO
Transactions are automatically started when a read or a write occurs.
|
MANUAL
Transactions must be explicitly opened for operations to occur on the graph.
|
Modifier and Type | Method and Description |
---|---|
static Transaction.READ_WRITE_BEHAVIOR |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.READ_WRITE_BEHAVIOR[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transaction.READ_WRITE_BEHAVIOR AUTO
public static final Transaction.READ_WRITE_BEHAVIOR MANUAL
public static Transaction.READ_WRITE_BEHAVIOR[] values()
for (Transaction.READ_WRITE_BEHAVIOR c : Transaction.READ_WRITE_BEHAVIOR.values()) System.out.println(c);
public static Transaction.READ_WRITE_BEHAVIOR 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 © 2013–2020 Apache Software Foundation. All rights reserved.