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 managedCollection
ofDrivenValues
protected boolean
Called after asserting that the calling thread holds the injected lock.protected boolean
Called after asserting that the calling thread holds the injected lock.protected Collection<PropertyReference>
void
shutdown()
Lifecycle hook to shut down the driven valuevoid
startup()
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 managedCollection
ofDrivenValues
- Returns:
- The managed
Collection
ofDrivenValues
-
isReadyInternal
protected boolean isReadyInternal()Description copied from class:LockGuardedDrivenValue
Called after asserting that the calling thread holds the injected lock.- Specified by:
isReadyInternal
in classLockGuardedDrivenValue<T>
- See Also:
-
isDirtyInternal
protected boolean isDirtyInternal()Description copied from class:LockGuardedDrivenValue
Called after asserting that the calling thread holds the injected lock.- Specified by:
isDirtyInternal
in classLockGuardedDrivenValue<T>
- See Also:
-
startup
public void startup()Description copied from interface:DrivenValue
Lifecycle hook to start up the driven value -
resolveReferencesInternal
- Specified by:
resolveReferencesInternal
in classLockGuardedDrivenValue<T>
-
shutdown
public void shutdown()Description copied from interface:DrivenValue
Lifecycle hook to shut down the driven value
-