Class PerspectivePollingBlockingTask
java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.ignition.common.execution.PollingBlockingTask
com.inductiveautomation.perspective.gateway.threading.PerspectivePollingBlockingTask
A polling blocking task that looks up its rate from a property tree and is reactive to the rate changing.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.ignition.common.execution.PollingBlockingTaskPollingBlockingTask.State
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.common.execution.PollingBlockingTaskLOG
- 
Constructor SummaryConstructorsConstructorDescriptionPerspectivePollingBlockingTask(PerspectiveContext context, PropertyTree props, String refreshRatePath, long defaultRate, Runnable task, String diagnosticId) PerspectivePollingBlockingTask(ScheduledExecutorService scheduler, ExecutorService executor, PropertyTree props, String refreshRatePath, long defaultRate, Runnable task, String diagnosticId) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected longDefault implementation returns the rate from the constructor, but provides a place for subclasses to re-define the rate on startup if necessary.protected longprotected voidprotected voidMethods inherited from class com.inductiveautomation.ignition.common.execution.PollingBlockingTaskonStartup, setRate, submitIfIdleMethods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycleisRunning, shutdown, startup
- 
Constructor Details- 
PerspectivePollingBlockingTaskpublic PerspectivePollingBlockingTask(PerspectiveContext context, PropertyTree props, String refreshRatePath, long defaultRate, Runnable task, String diagnosticId) 
- 
PerspectivePollingBlockingTaskpublic PerspectivePollingBlockingTask(ScheduledExecutorService scheduler, ExecutorService executor, PropertyTree props, String refreshRatePath, long defaultRate, Runnable task, String diagnosticId) 
 
- 
- 
Method Details- 
getInitialRateprotected long getInitialRate()Description copied from class:PollingBlockingTaskDefault implementation returns the rate from the constructor, but provides a place for subclasses to re-define the rate on startup if necessary.- Overrides:
- getInitialRatein class- PollingBlockingTask
 
- 
onShutdownprotected void onShutdown()- Overrides:
- onShutdownin class- PollingBlockingTask
 
- 
onRefreshRateChange
- 
getRefreshRateFromPropsprotected long getRefreshRateFromProps()
- 
parseLong
 
-