public interface SettingsMap
String
s).
Thread-safe.
The settings may be associated with certain TeamCity objects (e.g. SProject
).
Note that the methods may not throw after this object is removed.
Keys and values are expected to be short or medium length (up to 1Mb). Big strings may cause performance problems.
CustomSettings
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue(java.lang.String key)
Deprecated.
Returns the value for the
key , or null if there is no one. |
java.lang.String |
remove(java.lang.String key)
Deprecated.
Removes and persists the entry associated with the
key . |
void |
setValue(java.lang.String key,
java.lang.String value)
Deprecated.
Sets and persists the
key / value entry. |
@Nullable java.lang.String getValue(@NotNull java.lang.String key)
key
, or null
if there is no one.
The call may require the I/O operations, so can be potentially slow.key
- the keyvoid setValue(@NotNull java.lang.String key, @NotNull java.lang.String value)
key
/ value
entry.
The call requires the I/O operations, hence can be slow.key
- the keyvalue
- the value@Nullable java.lang.String remove(@NotNull java.lang.String key)
key
.
The call requires the I/O operations, hence can be slow.key
- the key