public enum TransactionApplicationMode extends Enum<TransactionApplicationMode>
applying transactions.
Depending on how transaction state have been built, additional work may need to be performed during
application of it.| Enum Constant and Description |
|---|
EXTERNAL
Transaction that comes from an external source and consists only of commands, i.e.
|
INTERNAL
Transaction that is created in the "normal" way and has changed transaction state, which goes
to commit and produces commands from that.
|
RECOVERY
Transaction that is recovered, where commands are read, much like
EXTERNAL, but should
be applied differently where extra care should be taken to ensure idempotency. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
needsCacheInvalidationOnUpdates() |
boolean |
needsHighIdTracking() |
boolean |
needsIdempotencyChecks() |
static TransactionApplicationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionApplicationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionApplicationMode INTERNAL
public static final TransactionApplicationMode EXTERNAL
public static final TransactionApplicationMode RECOVERY
EXTERNAL, but should
be applied differently where extra care should be taken to ensure idempotency. This is because
a recovered transaction may have already been applied previously to the store.public static TransactionApplicationMode[] values()
for (TransactionApplicationMode c : TransactionApplicationMode.values()) System.out.println(c);
public static TransactionApplicationMode 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 nullpublic boolean needsHighIdTracking()
public boolean needsCacheInvalidationOnUpdates()
public boolean needsIdempotencyChecks()
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.