20 #ifndef CO_OBJECTHANDLER_H
21 #define CO_OBJECTHANDLER_H
65 const uint128_t& version,
85 #endif // CO_OBJECTHANDLER_H
Interface for entities which map and register objects.
virtual ~ObjectHandler()
Destroy this object handler.
virtual void unmapObject(Object *object)=0
Unmap a mapped object.
virtual bool registerObject(Object *object)=0
Register a distributed object.
lunchbox::RefPtr< Node > NodePtr
A reference pointer for Node pointers.
virtual uint32_t mapObjectNB(Object *object, const UUID &id, const uint128_t &version, NodePtr master)=0
Start mapping a distributed object.
virtual bool mapObjectSync(const uint32_t requestID)=0
Finalize the mapping of a distributed object.
ObjectHandler()
Construct a new object handler.
virtual void deregisterObject(Object *object)=0
Deregister a distributed object.
CO_API void releaseObject(Object *object)
Convenience method to deregister or unmap an object.