Interface Database.InitializationListener<T extends DatabaseInstance<T>>

Type Parameters:
T - The class of the instance
Enclosing class:
Database

public static interface Database.InitializationListener<T extends DatabaseInstance<T>>
Called when the DatabaseInstance is initialized and enters a valid state
Since:
19oct24
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onInitialization(T instance, boolean success)
    Called when the instance is initialized and in a legal state
  • Method Details

    • onInitialization

      void onInitialization(@MustStir T instance, boolean success)
      Called when the instance is initialized and in a legal state
      Parameters:
      instance - the DatabaseInstance
      success - true if the instance was successfully initialized. false if the document for the instance did not exists or other errors occurred.
      See Also: