public static class DependentConfiguration.ProtoBuilder
extends java.lang.Object
Constructor and Description |
---|
ProtoBuilder() |
Modifier and Type | Method and Description |
---|---|
<T2> DependentConfiguration.Builder<T2,T2> |
attributeWhenReady(Entity source,
AttributeSensor<T2> sensor)
Will wait for the attribute on the given entity, with default behaviour:
If that entity reports
Lifecycle.ON_FIRE for its Attributes.SERVICE_STATE_ACTUAL then it will abort;
If that entity is stopping or destroyed (see Builder#timeoutIfStoppingOrDestroyed(Duration) ),
then it will timeout after 1 minute. |
<T2> DependentConfiguration.Builder<T2,T2> |
attributeWhenReadyAllowingOnFire(Entity source,
AttributeSensor<T2> sensor)
Will wait for the attribute on the given entity, not aborting when it goes
Lifecycle.ON_FIRE . |
<T> DependentConfiguration.MultiBuilder<T,T,java.util.List<T>> |
attributeWhenReadyFromMultiple(java.lang.Iterable<? extends Entity> sources,
AttributeSensor<T> sensor)
Constructs a builder for task for parallel execution returning a list of values of the given sensor list on the given entity,
optionally when the values satisfy a given readiness predicate (defaulting to groovy truth if not supplied)
|
<T> DependentConfiguration.MultiBuilder<T,T,java.util.List<T>> |
attributeWhenReadyFromMultiple(java.lang.Iterable<? extends Entity> sources,
AttributeSensor<T> sensor,
<any> readiness)
As
attributeWhenReadyFromMultiple(Iterable, AttributeSensor) with an explicit readiness test. |
public <T2> DependentConfiguration.Builder<T2,T2> attributeWhenReady(Entity source, AttributeSensor<T2> sensor)
Lifecycle.ON_FIRE
for its Attributes.SERVICE_STATE_ACTUAL
then it will abort;
If that entity is stopping or destroyed (see Builder#timeoutIfStoppingOrDestroyed(Duration)
),
then it will timeout after 1 minute.public <T2> DependentConfiguration.Builder<T2,T2> attributeWhenReadyAllowingOnFire(Entity source, AttributeSensor<T2> sensor)
Lifecycle.ON_FIRE
.public <T> DependentConfiguration.MultiBuilder<T,T,java.util.List<T>> attributeWhenReadyFromMultiple(java.lang.Iterable<? extends Entity> sources, AttributeSensor<T> sensor)
public <T> DependentConfiguration.MultiBuilder<T,T,java.util.List<T>> attributeWhenReadyFromMultiple(java.lang.Iterable<? extends Entity> sources, AttributeSensor<T> sensor, <any> readiness)
attributeWhenReadyFromMultiple(Iterable, AttributeSensor)
with an explicit readiness test.