PreCache NetInjector Documentation Center : PreCache NetInjector API Reference

C++ Classes

   







Subscriber

— the interface for receiving notifications


A subscriber class that receives Notifications must implement interface Subscriber. The interface defines a callback method, notify, which is invoked on behalf of the subscriber by a Proxy object to delivermatching notifications.

Hierarchy

precache::util:: Serializable

      --> precache::event::Subscriber

Desctructor

~Subscriber()

Frees up resources associated with this object

Methods

Notify

virtual void Notify(
Notification* pNotification,
precache::util::Serializable* pClosure)
throw(PCException

virtual void Notify(
Notification* pNotification,
void* pClosure)
throw(PCException)

Called to deliver matching notifications to the object implementing this interface. Implement the serializable method to save the notification to disk.

pNotification —
a pointer to a newly-allocated object containing the notification to be delivered

pClosure —
an object passed to the Proxy's Subscribe method to identify which subscription was matched by a notification