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 aLockGuardedDrivenValuewhich provides implementations forisReadyInternal(),isDirtyInternal(),startup(), andshutdown()common to a managedCollectionofDrivenValues.
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue
lock
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLockGuardedDrivenValueCollection(java.lang.Object lock)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.Collection<V>getCollection()Fetch the managedCollectionofDrivenValuesprotected booleanisDirtyInternal()Called after asserting that the calling thread holds the injected lock.protected booleanisReadyInternal()Called after asserting that the calling thread holds the injected lock.protected java.util.Collection<PropertyReference>resolveReferencesInternal()voidshutdown()Lifecycle hook to shut down the driven valuevoidstartup()Lifecycle hook to start up the driven value-
Methods inherited from class com.inductiveautomation.perspective.gateway.driven.LockGuardedDrivenValue
getAndClear, getAndClearInternal, isDirty, isReady, resolveReferences
-
-
-
-
Method Detail
-
getCollection
@Nonnull protected abstract java.util.Collection<V> 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:
LockGuardedDrivenValue.isReady()
-
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:
LockGuardedDrivenValue.isDirty()
-
startup
public void startup()
Description copied from interface:DrivenValueLifecycle hook to start up the driven value
-
resolveReferencesInternal
protected java.util.Collection<PropertyReference> resolveReferencesInternal()
- Specified by:
resolveReferencesInternalin classLockGuardedDrivenValue<T>
-
shutdown
public void shutdown()
Description copied from interface:DrivenValueLifecycle hook to shut down the driven value
-
-