public static interface BuildCacheServiceFactory.Describer
The description is for human consumption. It may be logged and displayed by tooling.
|Modifier and Type||Method||Description|
Sets a configuration param of the cache being used.
Sets the description of the type of cache being used.
BuildCacheServiceFactory.Describer type(java.lang.String type)
The value should not include particulars about the cache; only a human friendly description of the kind of cache.
For example, instead of
"HTTP @ https://some/cache" it should be just
Particular configuration should be set via
BuildCacheServiceFactory implementations should always return the same value for the same cache “type”.
All implementations should call this method.
Values should be lowercase, except where using an acronym (e.g. HTTP).
Subsequent calls to this method replace the previously set value.
BuildCacheServiceFactory.Describer config(java.lang.String name, java.lang.String value)
Values may be logged. Secrets (e.g. passwords) should not be declared with this method.
Implementations should describe their config where possible.
Subsequent calls to this method with the same
name argument will replace
the previously supplied
Subsequent calls to this method with different
name arguments will append values.