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
    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