public class MaxConcurrencySensor extends java.lang.Object implements EntityInitializer
brooklyn.initializers: - type: org.apache.brooklyn.core.sensor.MaxConcurrencySensor brooklyn.config: name: start-latch-value latch.concurrency.max: 10
and is the short hand for:brooklyn.initializers: - type: org.apache.brooklyn.core.sensor.StaticSensor brooklyn.config: name: start-latch-value static.value: $brooklyn.object: type: org.apache.brooklyn.core.sensor.ReleaseableLatch$Factory factoryMethod.name: newMaxConcurrencyLatch factoryMethod.args: [10]
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.Integer> |
MAX_CONCURRENCY |
static ConfigKey<java.lang.String> |
SENSOR_NAME |
static ConfigKey<java.lang.String> |
SENSOR_TYPE |
Constructor and Description |
---|
MaxConcurrencySensor(ConfigBag params) |
Modifier and Type | Method and Description |
---|---|
void |
apply(EntityLocal entity)
Applies initialization logic to a just-built entity.
|
public static final ConfigKey<java.lang.String> SENSOR_NAME
public static final ConfigKey<java.lang.String> SENSOR_TYPE
public static final ConfigKey<java.lang.Integer> MAX_CONCURRENCY
public MaxConcurrencySensor(ConfigBag params)
public void apply(EntityLocal entity)
EntityInitializer
apply
in interface EntityInitializer
entity
- guaranteed to be the actual implementation instance,
thus guaranteed to be castable to EntityInternal which is often desired,
or to the type at hand (it is not even a proxy)