Class PerspectivePollingFuture<V>
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
- 
- com.inductiveautomation.ignition.common.execution.PollingFuture<V>
- 
- com.inductiveautomation.perspective.gateway.threading.PerspectivePollingFuture<V>
 
 
 
- 
 public class PerspectivePollingFuture<V> extends PollingFuture<V> Manages a polling task that looks up its rate from a property tree and is reactive to the rate changing.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.execution.PollingFuturePollingFuture.State
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.ignition.common.execution.PollingFutureLOG
 
- 
 - 
Constructor SummaryConstructors Constructor Description PerspectivePollingFuture(PerspectiveContext context, PropertyTree props, java.lang.String refreshRatePath, long defaultRate, java.util.function.Supplier<java.util.concurrent.CompletableFuture<V>> fetch, java.util.function.BiConsumer<V,java.lang.Throwable> consumer, java.lang.String diagnosticId)PerspectivePollingFuture(java.util.concurrent.ScheduledExecutorService scheduler, java.util.concurrent.ExecutorService executor, PropertyTree props, java.lang.String refreshRatePath, long defaultRate, java.util.function.Supplier<java.util.concurrent.CompletableFuture<V>> fetch, java.util.function.BiConsumer<V,java.lang.Throwable> consumer, java.lang.String diagnosticId)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetInitialRate()Default implementation returns the rate from the constructor, but provides a place for subclasses to re-define the rate on startup if necessary.protected longgetRefreshRateFromProps()protected voidonRefreshRateChange(PropertyTreeChangeEvent event)protected voidonShutdown()protected java.util.Optional<java.lang.Long>parseLong(QualifiedValue qv)- 
Methods inherited from class com.inductiveautomation.ignition.common.execution.PollingFuturegetRateMillis, onStartup, setRate, submitIfIdle
 - 
Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycleisRunning, shutdown, startup
 
- 
 
- 
- 
- 
Constructor Detail- 
PerspectivePollingFuturepublic PerspectivePollingFuture(PerspectiveContext context, PropertyTree props, java.lang.String refreshRatePath, long defaultRate, java.util.function.Supplier<java.util.concurrent.CompletableFuture<V>> fetch, java.util.function.BiConsumer<V,java.lang.Throwable> consumer, java.lang.String diagnosticId) 
 - 
PerspectivePollingFuturepublic PerspectivePollingFuture(java.util.concurrent.ScheduledExecutorService scheduler, java.util.concurrent.ExecutorService executor, PropertyTree props, java.lang.String refreshRatePath, long defaultRate, java.util.function.Supplier<java.util.concurrent.CompletableFuture<V>> fetch, java.util.function.BiConsumer<V,java.lang.Throwable> consumer, java.lang.String diagnosticId)
 
- 
 - 
Method Detail- 
getInitialRateprotected long getInitialRate() Description copied from class:PollingFutureDefault 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- PollingFuture<V>
 
 - 
onShutdownprotected void onShutdown() - Overrides:
- onShutdownin class- PollingFuture<V>
 
 - 
onRefreshRateChangeprotected void onRefreshRateChange(PropertyTreeChangeEvent event) 
 - 
getRefreshRateFromPropsprotected long getRefreshRateFromProps() 
 - 
parseLongprotected java.util.Optional<java.lang.Long> parseLong(QualifiedValue qv) 
 
- 
 
-