Managed object model
The Coherence C++ API is built on top of a managed object model, which takes on the responsibility for object lifecycle management. This means you will not make explicit calls to new or delete when dealing with managed objects. A managed object is an instance of any class that derives from coherence::lang::Object. This base class is responsible for maintaining the object's reference count, allowing for automatic destruction once the object is no longer being referenced.
This model is useful for Coherence because caches both return and retain references to their cached objects. A cache may be a subset of a larger data set and may evict an item while the application could still be using a previously obtained reference to the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access