Package jetbrains.buildServer.serverSide
Enum CustomDataStorage.ConflictResolution
- java.lang.Object
-
- java.lang.Enum<CustomDataStorage.ConflictResolution>
-
- jetbrains.buildServer.serverSide.CustomDataStorage.ConflictResolution
-
- All Implemented Interfaces:
Serializable
,Comparable<CustomDataStorage.ConflictResolution>
- Enclosing interface:
- CustomDataStorage
public static enum CustomDataStorage.ConflictResolution extends Enum<CustomDataStorage.ConflictResolution>
Controls the conflicts resolution during the flush operation when in-memory data is being stored into the underlying persistent storage. The conflict can happen if more than one TeamCity node saves the data to the same storage. TeamCity usesIGNORE_OURS
mode by default.- Since:
- 2023.03
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL
in this mode in case of a conflict an exception will be thrownIGNORE_OURS
in this mode in case of a conflict the in-memory and not yet saved changes are discarded and data is loaded from the storage insteadIGNORE_THEIRS
in this mode in case of a conflict the in-memory data will overwrite the data in the storage
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomDataStorage.ConflictResolution
valueOf(String name)
Returns the enum constant of this type with the specified name.static CustomDataStorage.ConflictResolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE_OURS
public static final CustomDataStorage.ConflictResolution IGNORE_OURS
in this mode in case of a conflict the in-memory and not yet saved changes are discarded and data is loaded from the storage instead
-
IGNORE_THEIRS
public static final CustomDataStorage.ConflictResolution IGNORE_THEIRS
in this mode in case of a conflict the in-memory data will overwrite the data in the storage
-
FAIL
public static final CustomDataStorage.ConflictResolution FAIL
in this mode in case of a conflict an exception will be thrown
-
-
Method Detail
-
values
public static CustomDataStorage.ConflictResolution[] 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 (CustomDataStorage.ConflictResolution c : CustomDataStorage.ConflictResolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomDataStorage.ConflictResolution 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
-
-