public enum FunctionRestoreMode extends Enum<FunctionRestoreMode> implements ProtocolKeyword
FUNCTION RESTORE
.Enum Constant and Description |
---|
APPEND
Appends the restored libraries to the existing libraries and aborts on collision.
|
FLUSH
Deletes all existing libraries before restoring the payload.
|
REPLACE
Appends the restored libraries to the existing libraries, replacing any existing ones in case of name collisions.
|
Modifier and Type | Field and Description |
---|---|
byte[] |
bytes |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
static FunctionRestoreMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FunctionRestoreMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final FunctionRestoreMode APPEND
public static final FunctionRestoreMode FLUSH
public static final FunctionRestoreMode REPLACE
public static FunctionRestoreMode[] values()
for (FunctionRestoreMode c : FunctionRestoreMode.values()) System.out.println(c);
public static FunctionRestoreMode 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 byte[] getBytes()
getBytes
in interface ProtocolKeyword
Copyright © 2023 lettuce.io. All rights reserved.