|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.config.DerivedStringProperty<D>
public abstract class DerivedStringProperty<D>
Derives a complex value from a DynamicStringProperty.
| Constructor Summary | |
|---|---|
DerivedStringProperty(java.lang.String name,
java.lang.String defaultValue)
|
|
| Method Summary | |
|---|---|
void |
addCallback(java.lang.Runnable callback)
Add the callback to be triggered when the value of the property is changed |
protected abstract D |
derive(java.lang.String value)
Invoked when property is updated with a new value. |
D |
get()
Fetches derived value. |
long |
getChangedTimestamp()
Gets the time (in milliseconds past the epoch) when the property was last set/changed. |
D |
getDefaultValue()
Get the default property value specified at creation time |
java.lang.String |
getName()
Get the name of the property |
D |
getValue()
Get the latest value for the given property |
protected void |
propertyChanged()
PropertyWrapper.propertyChanged() |
void |
removeAllCallbacks()
Remove all callbacks registered through this instance of property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DerivedStringProperty(java.lang.String name,
java.lang.String defaultValue)
| Method Detail |
|---|
public D get()
public D getValue()
Property
getValue in interface Property<D>public D getDefaultValue()
Property
getDefaultValue in interface Property<D>public java.lang.String getName()
Property
getName in interface Property<D>public long getChangedTimestamp()
Property
getChangedTimestamp in interface Property<D>public void addCallback(java.lang.Runnable callback)
Property
addCallback in interface Property<D>public void removeAllCallbacks()
removeAllCallbacks in interface Property<D>protected abstract D derive(java.lang.String value)
protected void propertyChanged()
PropertyWrapper.propertyChanged()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||