java.io.Serializable, java.lang.Comparable<Durability.SyncPolicy>public static enum Durability.SyncPolicy extends java.lang.Enum<Durability.SyncPolicy>
| Enum Constant | Description |
|---|---|
NO_SYNC |
Do not write or synchronously flush the log on transaction commit.
|
SYNC |
Write and synchronously flush the log on transaction commit.
|
WRITE_NO_SYNC |
Write but do not synchronously flush the log on transaction commit.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Durability.SyncPolicy |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Durability.SyncPolicy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Durability.SyncPolicy SYNC
This is the default for a non-replicated environment.
public static final Durability.SyncPolicy NO_SYNC
This is the default for a replicated environment.
public static final Durability.SyncPolicy WRITE_NO_SYNC
public static Durability.SyncPolicy[] values()
for (Durability.SyncPolicy c : Durability.SyncPolicy.values()) System.out.println(c);
public static Durability.SyncPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright (c) 2002, 2018 Oracle and/or its affiliates. All rights reserved.