com.netflix.config
Interface Property<T>

Type Parameters:
T - The value type of the property
All Known Implementing Classes:
ChainedDynamicProperty.BooleanProperty, ChainedDynamicProperty.ChainLink, ChainedDynamicProperty.DynamicBooleanPropertyThatSupportsNull, ChainedDynamicProperty.FloatProperty, ChainedDynamicProperty.IntProperty, ChainedDynamicProperty.LongProperty, ChainedDynamicProperty.StringProperty, DerivedStringProperty, DynamicBooleanProperty, DynamicContextualProperty, DynamicDoubleProperty, DynamicFloatProperty, DynamicIntProperty, DynamicListProperty, DynamicLongProperty, DynamicMapProperty, DynamicSetProperty, DynamicStringListProperty, DynamicStringMapProperty, DynamicStringProperty, DynamicStringSetProperty, PropertyWrapper, StringDerivedProperty

public interface Property<T>

Base interface for Archaius properties. Provides common methods across all property implementations.


Method Summary
 void addCallback(java.lang.Runnable callback)
          Add the callback to be triggered when the value of the property is changed
 long getChangedTimestamp()
          Gets the time (in milliseconds past the epoch) when the property was last set/changed.
 T getDefaultValue()
          Get the default property value specified at creation time
 java.lang.String getName()
          Get the name of the property
 T getValue()
          Get the latest value for the given property
 void removeAllCallbacks()
          remove all callbacks registered through the instance of property
 

Method Detail

getValue

T getValue()
Get the latest value for the given property

Returns:
the latest property value

getDefaultValue

T getDefaultValue()
Get the default property value specified at creation time

Returns:
the default property value

getName

java.lang.String getName()
Get the name of the property

Returns:
the property name

getChangedTimestamp

long getChangedTimestamp()
Gets the time (in milliseconds past the epoch) when the property was last set/changed.


addCallback

void addCallback(java.lang.Runnable callback)
Add the callback to be triggered when the value of the property is changed

Parameters:
callback -

removeAllCallbacks

void removeAllCallbacks()
remove all callbacks registered through the instance of property