com.netflix.config
Class DynamicFloatProperty

java.lang.Object
  extended by com.netflix.config.PropertyWrapper<java.lang.Float>
      extended by com.netflix.config.DynamicFloatProperty
All Implemented Interfaces:
Property<java.lang.Float>

public class DynamicFloatProperty
extends PropertyWrapper<java.lang.Float>

A dynamic property whose value is a float.

Use APIs in DynamicPropertyFactory to create instance of this class.


Field Summary
 
Fields inherited from class com.netflix.config.PropertyWrapper
defaultValue, prop
 
Constructor Summary
DynamicFloatProperty(java.lang.String propName, float defaultValue)
           
 
Method Summary
 float get()
          Get the current value from the underlying DynamicProperty
 java.lang.Float getValue()
          Get current typed value of the property.
 
Methods inherited from class com.netflix.config.PropertyWrapper
addCallback, addValidator, getChangedTimestamp, getDefaultValue, getDynamicProperty, getName, propertyChanged, propertyChanged, registerSubClassWithNoCallback, removeAllCallbacks, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicFloatProperty

public DynamicFloatProperty(java.lang.String propName,
                            float defaultValue)
Method Detail

get

public float get()
Get the current value from the underlying DynamicProperty


getValue

public java.lang.Float getValue()
Description copied from class: PropertyWrapper
Get current typed value of the property.

Specified by:
getValue in interface Property<java.lang.Float>
Specified by:
getValue in class PropertyWrapper<java.lang.Float>
Returns:
the latest property value