Class SingletonResourceHandler.Builder<R>
java.lang.Object
com.inductiveautomation.ignition.gateway.config.SingletonResourceHandler.Builder<R>
- Enclosing class:
- SingletonResourceHandler<R>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
configurationManager
(ConfigurationManager manager) The configuration manager that will be used to store the resourcecontext
(GatewayContext context) Use the GatewayContext to set the configuration manager and redundancy manager.A callback that will be invoked whenever the resource changes.redundancyManager
(RedundancyManager redundancyManager) By specifying a redundancy manager, the handler will automatically use the "backupConfig.json" version of the resource's configuration if the gateway is running as the Backup node.
-
Constructor Details
-
Builder
-
-
Method Details
-
context
Use the GatewayContext to set the configuration manager and redundancy manager. If you call this (recommended) you can skip callingconfigurationManager(ConfigurationManager)
andredundancyManager(RedundancyManager)
-
configurationManager
The configuration manager that will be used to store the resourceCalling either this or
context(GatewayContext)
is required.- See Also:
-
redundancyManager
By specifying a redundancy manager, the handler will automatically use the "backupConfig.json" version of the resource's configuration if the gateway is running as the Backup node.This is optional.
- See Also:
-
onChange
A callback that will be invoked whenever the resource changes. This may be called on startup if the resource is different from the meta's default config.This is optional.
-
build
-