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. |
REVERSE_RECOVERY
Transaction that is recovered during a phase of reverse recovery in order to rewind neo store back
to a state where forward recovery then can commence from.
|
Modifier and Type | Method and Description |
---|---|
boolean |
needsAuxiliaryStores() |
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.
|
org.neo4j.kernel.impl.transaction.command.Command.Version |
version() |
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 final TransactionApplicationMode REVERSE_RECOVERY
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()
public boolean needsAuxiliaryStores()
public org.neo4j.kernel.impl.transaction.command.Command.Version version()
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.