Class LockGuardedDrivenValueCollection<T,U,V extends DrivenValue<U>>
java.lang.Object
com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue<T>
com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValueCollection<T,U,V>
- Type Parameters:
T- The type of the driven valueU- The type of the driven values managed in the collectionV- The type of the driven value which extendsDrivenValue
- All Implemented Interfaces:
DrivenValue<T>
public abstract class LockGuardedDrivenValueCollection<T,U,V extends DrivenValue<U>>
extends LockGuardedDrivenValue<T>
A LockGuardedDrivenValueCollection is a
LockGuardedDrivenValue which provides implementations for
isReadyInternal(), isDirtyInternal(), startup(), and shutdown() common to a
managed Collection of DrivenValues.-
Field Summary
Fields inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue
lock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Collection<V>Fetch the managedCollectionofDrivenValuesprotected booleanCalled after asserting that the calling thread holds the injected lock.protected booleanCalled after asserting that the calling thread holds the injected lock.protected Collection<PropertyReference>voidshutdown()Lifecycle hook to shut down the driven valuevoidstartup()Lifecycle hook to start up the driven valueMethods inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue
getAndClear, getAndClearInternal, isDirty, isReady, resolveReferences
-
Constructor Details
-
LockGuardedDrivenValueCollection
-
-
Method Details
-
getCollection
Fetch the managedCollectionofDrivenValues- Returns:
- The managed
CollectionofDrivenValues
-
isReadyInternal
protected boolean isReadyInternal()Description copied from class:LockGuardedDrivenValueCalled after asserting that the calling thread holds the injected lock.- Specified by:
isReadyInternalin classLockGuardedDrivenValue<T>- See Also:
-
isDirtyInternal
protected boolean isDirtyInternal()Description copied from class:LockGuardedDrivenValueCalled after asserting that the calling thread holds the injected lock.- Specified by:
isDirtyInternalin classLockGuardedDrivenValue<T>- See Also:
-
startup
public void startup()Description copied from interface:DrivenValueLifecycle hook to start up the driven value -
resolveReferencesInternal
- Specified by:
resolveReferencesInternalin classLockGuardedDrivenValue<T>
-
shutdown
public void shutdown()Description copied from interface:DrivenValueLifecycle hook to shut down the driven value
-