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 ...
Get Oracle Coherence 3.5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.