com.netflix.config
Class DynamicLongProperty

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

public class DynamicLongProperty
extends PropertyWrapper<java.lang.Long>

A dynamic property whose value is a long.

Use APIs in DynamicPropertyFactory to create instance of this class.


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

DynamicLongProperty

public DynamicLongProperty(java.lang.String propName,
                           long defaultValue)
Method Detail

get

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


getValue

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

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