com.netflix.config
Class DynamicIntProperty

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

public class DynamicIntProperty
extends PropertyWrapper<java.lang.Integer>

A dynamic property whose value is an integer

Use APIs in DynamicPropertyFactory to create instance of this class.


Field Summary
 
Fields inherited from class com.netflix.config.PropertyWrapper
defaultValue, prop
 
Constructor Summary
DynamicIntProperty(java.lang.String propName, int defaultValue)
           
 
Method Summary
 int get()
          Get the current value from the underlying DynamicProperty
 java.lang.Integer 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

DynamicIntProperty

public DynamicIntProperty(java.lang.String propName,
                          int defaultValue)
Method Detail

get

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


getValue

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

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