Annotation Interface SzConfigRetryable


@Retention(RUNTIME) @Documented @Target(METHOD) public @interface SzConfigRetryable
Used to annotate which Senzing SDK methods are dependent upon the active configuration being current.

Methods annotated with this annotation are those methods that may experience a failure if the active configuration is not the most recent configuration for the repository. Such failures can occur when retrieved data references a configuration element (e.g.: data source, feature type or match type) that is not found in the active configuration.

There are various ways this can happen, but typically it means that data has been loaded through another SzEnvironment using a newer configuration (usually in another system process) and then that data is retrieved by an SzEnvironment that was initialized prior to that configuration being registered in the repository and being set as the default configuration.

Such failures can usually be resolved by retrying after checking if the active configuration ID differs from the current default configuration ID, and if so reinitializing using the current default configuration ID.

Since:
4.1.0