OpFlex Framework
1.7.0
|
Interface for an object interested in updates to objects in the data store. More...
#include <opflex/modb/ObjectListener.h>
Public Member Functions | |
virtual | ~ObjectListener () |
Destroy the object listener. | |
virtual void | objectUpdated (class_id_t class_id, const URI &uri)=0 |
The specified URI has been added, updated, or deleted. More... | |
Interface for an object interested in updates to objects in the data store.
Object listeners are registered for a particular class will be triggered for any modifications for objects of that class or any transitive children of objects of that class.
|
pure virtual |
The specified URI has been added, updated, or deleted.
The listener should queue a task to read the new state and perform appropriate processing. If this function blocks or peforms a long-running operation, then the dispatching of update notifications will be stalled, but there will not be any other deleterious effects.
If multiple changes happen to the same URI, then at least one notification will be delivered but some events may be consolidated.
class_id | the class ID for the type associated with the updated object. |
uri | the URI for the updated object |