abstract class obix::ObixModWatch
ObixMod hooks for implementing server side watches. ObixMod manages the networking/protocol side of things, but subclasses are responsible for managing the actual URI subscription list and polling.
Add the given uris to watch and return current state. If there is an error for an individual uri, return an error object. Resulting objects must have hrefs which exactly match input uri.
abstract Void delete()
Handle delete/cleanup of watch.
abstract Str id()
Get unique idenifier for the watch. This string must be safe to use within a URI path (should not contain special chars or slashes)
abstract Duration lease
Get/set lease time
abstract ObixObj pollChanges()
Poll URIs which have changed since last poll. Resulting objects must have hrefs which exactly match input uri.
abstract ObixObj pollRefresh()
Poll all URIs in this watch. Resulting objects must have hrefs which exactly match input uri.
Remove the given uris from the watch. Silently ignore bad uris.
virtual ObixObj toObixObj()
Map server side representation to its on-the-wire Obix representation.
virtual override Str toStr()