CommitStoreNotifying

class dsviper.CommitStoreNotifying

Bases: object

An interface used to represent the notification emitted by a store.

Note: Not directly instantiable.

static create(object) → CommitStoreNotifying

Return a CommitStoreNotifying over object, or raise.

Raises TypeError when object lacks one of the notify methods. A notification is sent once the store has acted, so an exception raised by the object is dropped and the store call completes.

notify_database_did_close() → None

Send a notification to inform that the database was closed.

notify_database_did_open() → None

Send a notification to inform that the database was opened.

notify_database_did_reset() → None

Send a notification to inform that the database did reset.

notify_database_will_reset() → None

Send a notification to inform that the database will be reset.

notify_definitions_did_change() → None

Send a notification to inform that the definitions have changed.

notify_dispatch_error(error: Error) → None

Send a notification to inform that an error occurred during a dispatch.

notify_reset_database() → None

Send a notification to reset the database.

notify_state_did_change() → None

Send a notification to inform that the current state has changed.

notify_stop_live() → None

Send a notification to stop the live mode.