public static interface BrooklynObjectInternal.ConfigurationSupportInternal extends Configurable.ConfigurationSupport
Modifier and Type | Method and Description |
---|---|
void |
addToLocalBag(java.util.Map<java.lang.String,?> vals) |
ConfigBag |
getBag()
Returns a read-only view of all the config key/value pairs on this entity, backed by a string-based map,
including config names that did not match anything on this entity.
|
ConfigBag |
getLocalBag()
Returns a read-only view of the local (i.e.
|
Maybe<java.lang.Object> |
getLocalRaw(ConfigKey.HasConfigKey<?> key) |
Maybe<java.lang.Object> |
getLocalRaw(ConfigKey<?> key)
Returns the uncoerced value for this config key, if available,
not following any inheritance chains and not taking any default.
|
<T> Maybe<T> |
getNonBlocking(ConfigKey.HasConfigKey<T> key) |
<T> Maybe<T> |
getNonBlocking(ConfigKey<T> key)
Attempts to coerce the value for this config key, if available,
taking a default and
absent if the uncoerced
cannot be resolved within a short timeframe. |
Maybe<java.lang.Object> |
getRaw(ConfigKey.HasConfigKey<?> key) |
Maybe<java.lang.Object> |
getRaw(ConfigKey<?> key)
Returns the uncoerced value for this config key, if available, not taking any default.
|
void |
refreshInheritedConfig() |
void |
refreshInheritedConfigOfChildren() |
void |
removeFromLocalBag(java.lang.String key) |
ConfigBag getBag()
ConfigKey.getInheritance()
cannot be respected. This is an unsolvable problem
for "config names that did not match anything on this entity". Therefore consider using
alternative getters.ConfigBag getLocalBag()
Maybe<java.lang.Object> getRaw(ConfigKey<?> key)
Maybe.absent()
if the key is not explicitly set on this object or an ancestor.
See also {@link #getLocalRaw(ConfigKey).
Maybe<java.lang.Object> getRaw(ConfigKey.HasConfigKey<?> key)
#getRaw(ConfigKey)}
Maybe<java.lang.Object> getLocalRaw(ConfigKey<?> key)
Maybe.absent()
if the key is not explicitly set on this object.
See also {@link #getRaw(ConfigKey).
Maybe<java.lang.Object> getLocalRaw(ConfigKey.HasConfigKey<?> key)
#getLocalRaw(ConfigKey)}
<T> Maybe<T> getNonBlocking(ConfigKey<T> key)
absent
if the uncoerced
cannot be resolved within a short timeframe.
Note: if no value for the key is available, not even as a default,
this returns a Maybe.isPresent()
containing null
(following the semantics of Configurable.ConfigurationSupport.get(ConfigKey)
rather than getRaw(ConfigKey)
).
<T> Maybe<T> getNonBlocking(ConfigKey.HasConfigKey<T> key)
#getNonBlocking(ConfigKey)}
void addToLocalBag(java.util.Map<java.lang.String,?> vals)
void removeFromLocalBag(java.lang.String key)
void refreshInheritedConfig()
void refreshInheritedConfigOfChildren()