Improved Event API (NDB 7.4.3 and later).
NDB 7.4.3 introduces an epoch-driven Event API that supercedes the
earlier GCI-based model. The new version of the API also
simplifies error detection and handling. These changes are
realized in the NDB API by implementing a number of new methods
for Ndb and
NdbEventOperation, deprecating
several other methods of both classes, and adding new type values
to TableEvent.

Some of the new methods directly replace or stand in for deprecated
methods, but not all of the deprecated methods map to new ones, some
of which are entirely new. Old (deprecated) methods are shown in the
first column of the following table, and new methods in the second
column; old methods corresponding to new methods are shown in the
same row.

Error handling using the new API is accomplished by checking the
value returned from
getEventType2(),
and is no longer handled using the methods
hasError() and
clearError(),
which are now deprecated and subject to removal in a future release
of NDB Cluster. In support of this change, the range of possible
TableEvent types has been
expanded by those listed here:

TE_EMPTY: Empty epoch

TE_INCONSISTENT: Inconsistent epoch; missing
data or overflow

TE_OUT_OF_MEMORY: Inconsistent data; event
buffer out of memory or overflow

The result of these changes is that, in NDB 7.4.3 and later, you can
check for errors while checking a table event's type, as shown
here: