public static enum Durability.SyncPolicy extends Enum<Durability.SyncPolicy>
| Enum Constant and 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 and Description |
|---|---|
static Durability.SyncPolicy |
valueOf(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
public static final Durability.SyncPolicy NO_SYNC
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(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 (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.