Initialization State
- Kotlin
- Java
A map-like data structure that provides the initialization state of each database and the information that influenced it.
Summary
Public methods
isReady()
fun isReady(): Boolean
Checks whether SyncDatabase has been properly initialized
Returns | |
---|---|
Boolean | Returns true if the resources and connections for all databases accessed by SyncDatabase are ready for use; otherwise, returns false. |
isShutDown()
fun isShutDown(): Boolean
Checks whether SyncDatabase has been properly shut down
Returns | |
---|---|
Boolean | Returns true if the resources and connections for all databases accessed by SyncDatabase have been properly cleaned up; otherwise, returns false. |
hasError()
fun hasError(): Boolean
Checks whether an error occurred during the initialization of SyncDatabase
Returns | |
---|---|
Boolean | Returns true if an error occurred during the initialization of SyncDatabase; otherwise, returns false. The cause of errors for individual databases can be accessed using the database name as a key, similar to a map. |
A map-like data structure that provides the initialization state of each database and the information that influenced it.
Summary
Public methods
isReady()
Boolean isReady()
Check whether SyncDatabase has been properly initialized
Returns | |
---|---|
Boolean | Returns true if the resources and connections to all databases accessed by SyncDatabase are ready for use; otherwise, returns false. |
isShutDown()
Boolean isShutDown()
Check whether SyncDatabase has been properly shut down
Returns | |
---|---|
Boolean | Returns true if the resources and connections to all databases accessed by SyncDatabase have been properly cleaned up; otherwise, returns false. |
hasError()
Boolean hasError()
Check whether there was an error during SyncDatabase initialization
Returns | |
---|---|
Boolean | Returns true if an error occurred during SyncDatabase initialization; otherwise, returns false. The cause of an individual database's error can be accessed in the same way as a map, using databaseName as the key. |