TLog_Iter_Events

This sample demonstrates the use of a technique called “persistent events queue”. The log reader not only iterates objects but also receives events declared in the database schema and registered by the reader application. Function mco_translog_play(), which is an extended version of mco_translog_iterate(), provides the ability to register event handlers in a reader and catch these events while iterating a log.

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:

 
    tlogiterevents
     

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

Related Topics Link IconRelated Topics