Interface Initializer

All Superinterfaces:
AutoCloseable, Closeable

public interface Initializer extends Closeable
Interface for an FDv2 data source initializer that produces a single result.

An initializer runs once and delivers either a change set (success) or a status (error, shutdown, etc.). The orchestrator runs initializers in order until one succeeds with a change set.

Return a Future and complete it when the result is ready. Any Future implementation is acceptable.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Human-readable name for logging and diagnostics.
    run()
    Run the initializer to completion.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • run

      Run the initializer to completion.

      Intended to be called at most once per instance. Complete the returned future with the result (change set or status), or complete it exceptionally on error.

      Returns:
      a Future that completes with the result
    • name

      default String name()
      Human-readable name for logging and diagnostics. Do not use this for influencing code behavior.

      Implementations may override; the default uses the runtime class simple name.

      Returns:
      the name