@Beta public enum PersistenceProtocol extends Enum<PersistenceProtocol> implements org.opendaylight.yangtools.concepts.WritableObject
| Enum Constant and Description |
|---|
ABORT
Abort protocol.
|
READY
Transaction is ready.
|
SIMPLE
Simple commit protocol.
|
THREE_PHASE
Three-phase commit protocol (3PC).
|
| Modifier and Type | Method and Description |
|---|---|
static PersistenceProtocol |
readFrom(DataInput in) |
static PersistenceProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(DataOutput out) |
public static final PersistenceProtocol ABORT
public static final PersistenceProtocol SIMPLE
public static final PersistenceProtocol THREE_PHASE
public static final PersistenceProtocol READY
public static PersistenceProtocol[] values()
for (PersistenceProtocol c : PersistenceProtocol.values()) System.out.println(c);
public static PersistenceProtocol 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 final void writeTo(DataOutput out) throws IOException
writeTo in interface org.opendaylight.yangtools.concepts.WritableObjectIOExceptionpublic static PersistenceProtocol readFrom(DataInput in) throws IOException
IOExceptionCopyright © 2019 OpenDaylight. All rights reserved.