Interface BindingContext
- 
- All Superinterfaces:
- AuditingContext,- LoggingContext
 - All Known Implementing Classes:
- AbstractBindingHarness,- ElementBindingHarness
 
 public interface BindingContext extends AuditingContext, LoggingContext 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<AuditProfile>getAuditProfile()default java.util.concurrent.ExecutorServicegetExecutorService()Shortcut to get to the shared executor.QualifiedValuegetLastValue()default java.util.concurrent.ScheduledExecutorServicegetScheduler()default SessiongetSession()PerspectiveElementgetTargetElement()PropertyKeygetTargetProperty()voidprocessPublishedValue()Takes the most recently published value from the binding and runs it through the transforms or delivers it to the target if there are no transforms.default voidpublish(QualifiedValue value)voidpublish(QualifiedValue value, boolean pending)Called from the binding when it has a value to push onto the target property ( or through its transforms )- 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContextaudit, getAuditSnapshot
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContextgetLogger, getMdcParent, mdc, mdcSetup, mdcSetupTree, mdcTeardown, mdcTeardownTree, mdcWrap
 
- 
 
- 
- 
- 
Method Detail- 
getTargetElementPerspectiveElement getTargetElement() 
 - 
getTargetPropertyPropertyKey getTargetProperty() 
 - 
publishdefault void publish(QualifiedValue value) 
 - 
publishvoid publish(QualifiedValue value, boolean pending) Called from the binding when it has a value to push onto the target property ( or through its transforms )- Parameters:
- pending- true if this value is temporary and will be replaced (within a reasonable span of time) with a new value
 
 - 
processPublishedValuevoid processPublishedValue() Takes the most recently published value from the binding and runs it through the transforms or delivers it to the target if there are no transforms.
 - 
getLastValueQualifiedValue getLastValue() 
 - 
getSessiondefault Session getSession() 
 - 
getExecutorServicedefault java.util.concurrent.ExecutorService getExecutorService() Shortcut to get to the shared executor. SeePerspectiveContext.getExecutorService()
 - 
getSchedulerdefault java.util.concurrent.ScheduledExecutorService getScheduler() 
 - 
getAuditProfile@Nonnull default java.util.Optional<AuditProfile> getAuditProfile() - Specified by:
- getAuditProfilein interface- AuditingContext
- Returns:
- an Optionalcontaining theAuditProfilefor this context or an emptyOptionalif no audit profile is set
 
 
- 
 
-