|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.config.ChainedDynamicProperty.ChainLink<T>
public abstract static class ChainedDynamicProperty.ChainLink<T>
| Constructor Summary | |
|---|---|
ChainedDynamicProperty.ChainLink(ChainedDynamicProperty.ChainLink<T> nextProperty)
|
|
ChainedDynamicProperty.ChainLink(T defaultValue)
Used for end node |
|
| Method Summary | |
|---|---|
void |
addCallback(java.lang.Runnable r)
Add the callback to be triggered when the value of the property is changed |
protected void |
checkAndFlip()
|
T |
get()
|
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 |
protected abstract Property<T> |
getReferencedProperty()
Get the property referenced by this ChainLink |
T |
getValue()
Get the latest value for the given property |
abstract boolean |
isValueAcceptable()
|
void |
removeAllCallbacks()
Remove callback from callbacks list |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedDynamicProperty.ChainLink(T defaultValue)
public ChainedDynamicProperty.ChainLink(ChainedDynamicProperty.ChainLink<T> nextProperty)
nextProperty - | Method Detail |
|---|
public abstract boolean isValueAcceptable()
protected abstract Property<T> getReferencedProperty()
protected void checkAndFlip()
public T get()
public T getValue()
Property
getValue in interface Property<T>public T getDefaultValue()
Property
getDefaultValue in interface Property<T>public java.lang.String getName()
Property
getName in interface Property<T>public long getChangedTimestamp()
Property
getChangedTimestamp in interface Property<T>public void addCallback(java.lang.Runnable r)
Property
addCallback in interface Property<T>r - public void removeAllCallbacks()
removeAllCallbacks in interface Property<T>public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||