Package com.syzygy.events.database
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 TypeMethodDescriptionvoid
onInitialization
(T instance, boolean success) Called when the instance is initialized and in a legal state
-
Method Details
-
onInitialization
Called when the instance is initialized and in a legal state- Parameters:
instance
- theDatabaseInstance
success
-true
if the instance was successfully initialized.false
if the document for the instance did not exists or other errors occurred.- See Also:
-