A configuration object can be created using positional arguments or an options hash.
Gets the existing configuration, refreshing them if they are not yet loaded or have expired. Users should call this method before using {refresh}, as this will not attempt to reload configuration when they are already loaded into the object.
whether the configuration object should call {refresh}
Refreshes the configuration. Users should call {get} before attempting to forcibly refresh configuration.
Generated using TypeDoc
Represents your RSTREAMS configuration Creating a
Configuration
object allows you to pass around your coinfig information to configuration and service objects.Expiring and Refreshing Configuration
Occasionally configuration can expire in the middle of a long-running application. In this case, the SDK will automatically attempt to refresh the configuration from the storage location if the Configuration class implements the {refresh} method.
If you are implementing a configuration storage location, you will want to create a subclass of the
Configuration
class and override the {refresh} method. This method allows configuration to be retrieved from the backing store, be it a file system, database, or some network storage. The method should reset the configuration attributes on the object.expired
whether the configuration have been expired and require a refresh. Used in conjunction with {expireTime}.
expireTime
a time when configuration should be considered expired. Used in conjunction with {expired}.