public interface Initializer
extends java.io.Closeable
Interface for an asynchronous data source initializer.
An initializer will run and produce a single result. If the initializer is successful, then it should emit a result containing a change set. If the initializer fails, then it should emit a status result describing the error.
[START] │ ▼ ┌─────────────┐ │ RUNNING │──┐ └─────────────┘ │ │ │ │ │ │ │ │ │ │ └──► SHUTDOWN ───► [END] │ │ │ │ │ │ │ └─────► INTERRUPTED ───► [END] │ │ │ │ │ └─────────► CHANGESET ───► [END] │ │ │ └─────────────► TERMINAL_ERROR ───► [END] │ └─────────────────► GOODBYE ───► [END]
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<FDv2SourceResult> |
run()
Run the initializer to completion.
|
java.util.concurrent.CompletableFuture<FDv2SourceResult> run()
This method is intended to be called only single time for an instance.