OpFlex Framework  1.7.0
opflex::modb::ObjectListener Class Referenceabstract

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...
 

Detailed Description

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.

Member Function Documentation

◆ objectUpdated()

virtual void opflex::modb::ObjectListener::objectUpdated ( class_id_t  class_id,
const URI uri 
)
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.

Parameters
class_idthe class ID for the type associated with the updated object.
urithe URI for the updated object

The documentation for this class was generated from the following file: