Class AbstractStaticDrivenValue<T>
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.driven.AbstractStaticDrivenValue<T>
 
- 
- Type Parameters:
- T- The type of the static value
 - All Implemented Interfaces:
- DrivenValue<T>
 
 public class AbstractStaticDrivenValue<T> extends java.lang.Object implements DrivenValue<T> An AbstractStaticDrivenValue is aDrivenValuewhich never changes. Therefore, it is always ready and never dirty.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractStaticDrivenValue(T value)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<T>getAndClear()Fetch the current driven valuebooleanisDirty()booleanisReady()voidshutdown()Lifecycle hook to shut down the driven valuevoidstartup()Lifecycle hook to start up the driven value- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.driven.DrivenValueresolveReferences
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractStaticDrivenValuepublic AbstractStaticDrivenValue(@Nullable T value)
 
- 
 - 
Method Detail- 
startuppublic void startup() Description copied from interface:DrivenValueLifecycle hook to start up the driven value- Specified by:
- startupin interface- DrivenValue<T>
 
 - 
shutdownpublic void shutdown() Description copied from interface:DrivenValueLifecycle hook to shut down the driven value- Specified by:
- shutdownin interface- DrivenValue<T>
 
 - 
isReadypublic boolean isReady() - Specified by:
- isReadyin interface- DrivenValue<T>
- Returns:
- true if the driven value is ready to fetch
 
 - 
isDirtypublic boolean isDirty() - Specified by:
- isDirtyin interface- DrivenValue<T>
- Returns:
- true if the driven value has changed since the last time it was fetched
 
 - 
getAndClear@Nonnull public java.util.Optional<T> getAndClear() Description copied from interface:DrivenValueFetch the current driven value- Specified by:
- getAndClearin interface- DrivenValue<T>
- Returns:
- An Optionalcontaining the current driven value, if present, or an empty Optional if the driven value is null / not present.
 
 
- 
 
-