Package org.neo4j.graphdb.event
Interface DatabaseEventListener
public interface DatabaseEventListener
Event listener interface for independent database life cycle events.
Listeners are invoked on the same thread as event handling itself as result any blocking operation in the listener will block execution of the event.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
databaseCreate
(DatabaseEventContext eventContext) This method is invoked when a new database is created.void
databaseDrop
(DatabaseEventContext eventContext) This method is invoked after the database is dropped.void
databasePanic
(DatabaseEventContext eventContext) This method is invoked when the particular database enters a state from which it cannot recover and continue.void
databaseShutdown
(DatabaseEventContext eventContext) This method is invoked before shutdown process of a specific database.void
databaseStart
(DatabaseEventContext eventContext) This method is invoked after start of a specific database.
-
Method Details
-
databaseStart
This method is invoked after start of a specific database. Database is completely operational on the moment of notification.- Parameters:
eventContext
- context of the event, can be used to get metadata.
-
databaseShutdown
This method is invoked before shutdown process of a specific database. Database is still completely operational on the moment of notification.- Parameters:
eventContext
- context of the event, can be used to get metadata.
-
databasePanic
This method is invoked when the particular database enters a state from which it cannot recover and continue.- Parameters:
eventContext
- context of the event, can be used to get metadata.
-
databaseCreate
This method is invoked when a new database is created. This is called beforedatabaseStart(DatabaseEventContext)
and before any database components are available.- Parameters:
eventContext
- context of the event, can be used to get metadata.
-
databaseDrop
This method is invoked after the database is dropped. This is intended to be used when cleaning up database specific files after the database is deleted by the user.- Parameters:
eventContext
- context of the event, can be used to get metadata.
-