public enum DurabilityUtils extends Enum<DurabilityUtils>
Modifier and Type | Method and Description |
---|---|
static DurabilityUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DurabilityUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T extends MutationResult> |
wrapWithDurability(CompletableFuture<T> input,
String key,
PersistTo persistTo,
ReplicateTo replicateTo,
Core core,
KeyValueRequest<?> request,
boolean remove)
Helper method to wrap a mutation result to perform durability requirements if needed.
|
public static DurabilityUtils[] values()
for (DurabilityUtils c : DurabilityUtils.values()) System.out.println(c);
public static DurabilityUtils 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 static <T extends MutationResult> CompletableFuture<T> wrapWithDurability(CompletableFuture<T> input, String key, PersistTo persistTo, ReplicateTo replicateTo, Core core, KeyValueRequest<?> request, boolean remove)
Copyright © 2020 Couchbase, Inc.. All rights reserved.