public class BasicAttributeSensor<T> extends BasicSensor<T> implements AttributeSensor<T>
Sensor
describing an attribute change.AttributeSensor.SensorPersistenceMode
Constructor and Description |
---|
BasicAttributeSensor(java.lang.Class<T> type,
java.lang.String name) |
BasicAttributeSensor(java.lang.Class<T> type,
java.lang.String name,
java.lang.String description) |
BasicAttributeSensor(com.google.common.reflect.TypeToken<T> typeToken,
java.lang.String name) |
BasicAttributeSensor(com.google.common.reflect.TypeToken<T> typeToken,
java.lang.String name,
java.lang.String description) |
BasicAttributeSensor(com.google.common.reflect.TypeToken<T> typeToken,
java.lang.String name,
java.lang.String description,
AttributeSensor.SensorPersistenceMode persistence) |
Modifier and Type | Method and Description |
---|---|
AttributeSensor.SensorPersistenceMode |
getPersistenceMode()
The persistence mode of this sensor, to determine its behaviour for rebind.
|
equals, getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, hashCode, newEvent, toString
getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, newEvent
public BasicAttributeSensor(java.lang.Class<T> type, java.lang.String name)
public BasicAttributeSensor(java.lang.Class<T> type, java.lang.String name, java.lang.String description)
public BasicAttributeSensor(com.google.common.reflect.TypeToken<T> typeToken, java.lang.String name)
public BasicAttributeSensor(com.google.common.reflect.TypeToken<T> typeToken, java.lang.String name, java.lang.String description)
public BasicAttributeSensor(com.google.common.reflect.TypeToken<T> typeToken, java.lang.String name, java.lang.String description, AttributeSensor.SensorPersistenceMode persistence)
public AttributeSensor.SensorPersistenceMode getPersistenceMode()
AttributeSensor
getPersistenceMode
in interface AttributeSensor<T>