14-TTL

This sample demonstrates use of the “Time-To-Live” (TTL) automatic deletion of obsolete objects. Note that the two techniques for setting TTL policy are demonstrated in the schema definition (file schema.mco) and the results after inserting 10 objects are displayed by the application.

How to Run

See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the \target\bin directory:

 
    14_ttl
     

But it is more instructive to run it in your development environment debugger, stepping through the code.