Enum ReplicatedStorage.UpdateFlag
- java.lang.Object
-
- java.lang.Enum<ReplicatedStorage.UpdateFlag>
-
- com.opencloud.rhino.facilities.replicatedstorage.ReplicatedStorage.UpdateFlag
-
- All Implemented Interfaces:
Serializable
,Comparable<ReplicatedStorage.UpdateFlag>
- Enclosing interface:
- ReplicatedStorage
public static enum ReplicatedStorage.UpdateFlag extends Enum<ReplicatedStorage.UpdateFlag>
Optional flags that can be used to affect state management behaviour in an
ReplicatedStorage.update(Entry, byte[], EnumSet)
operation.These flags are only useful to use when storage is "replicated" to an external database or other remote system via the likes of a key/value store. They are not meaningful when using savanna-replicating storage as replicated state there is always local and a concept of remote state does not exist.
- Since:
- Rhino 2.7.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENABLE_LOCAL_UPDATE_INSERT
Flag that enables the insertion of externally retrieved state into local state during the operation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReplicatedStorage.UpdateFlag
valueOf(String name)
Returns the enum constant of this type with the specified name.static ReplicatedStorage.UpdateFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLE_LOCAL_UPDATE_INSERT
public static final ReplicatedStorage.UpdateFlag ENABLE_LOCAL_UPDATE_INSERT
Flag that enables the insertion of externally retrieved state into local state during the operation.
This flag can be used, for example, if state was retrieved using the
ReplicatedStorage.LookupFlag.SUPPRESS_LOCAL_INSERT
flag but it was subsequently decided that the state should be updated and locally retained.- Since:
- Rhino 2.7.0
-
-
Method Detail
-
values
public static ReplicatedStorage.UpdateFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReplicatedStorage.UpdateFlag c : ReplicatedStorage.UpdateFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReplicatedStorage.UpdateFlag valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-