@Beta
public static class DependentConfiguration.ProtoBuilder
extends java.lang.Object
Constructor and Description |
---|
DependentConfiguration.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.
|
<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,
com.google.common.base.Predicate<? super T> 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
then it will abort.public <T2> DependentConfiguration.Builder<T2,T2> attributeWhenReadyAllowingOnFire(Entity source, AttributeSensor<T2> sensor)
Lifecycle.ON_FIRE
.@Beta public <T> DependentConfiguration.MultiBuilder<T,T,java.util.List<T>> attributeWhenReadyFromMultiple(java.lang.Iterable<? extends Entity> sources, AttributeSensor<T> sensor)
@Beta public <T> DependentConfiguration.MultiBuilder<T,T,java.util.List<T>> attributeWhenReadyFromMultiple(java.lang.Iterable<? extends Entity> sources, AttributeSensor<T> sensor, com.google.common.base.Predicate<? super T> readiness)
attributeWhenReadyFromMultiple(Iterable, AttributeSensor)
with an explicit readiness test.