Interface provides a listener interface for live queries.
In OrientDB, Live Queries allows you to execute code in response to changes on the database. It has two parts, a query that defines the records you want to monitor and a listener that controls what your application does in response to changes in these records. Using this interface, you can implement your own listener with the specific code you want to run in response to changes.
OLiveQueryListener in your application, import it into your code:
When your Live Query registers an event, such as a user running an
DELETE statement, OrientDB attempts to call methods on the listener. You can define what actions your application takes by overriding the following methods, implementing your own code.
||Executes on record creation|
||Executes on record deletion|
||Executes on unsubscribe|
||Executes on errors|
||Executes on record updates|