Writer and Listener Cache Plug-ins

You can implement two types of synchronous cache plug-ins: writers and listeners.

Writer and listener cache plug-ins operate in the following ways:

You attach writers and listeners to tables by using the SYS.ATTACH_WRITER and SYS.ADD_LISTENER built-in system procedures.

Both listeners and writers must be implementations of the EventCallback interface. The main method of the interface is the onEvent method, which is invoked in both writer and listener implementations.

The Event object which is passed with the callback gives the following information:

GemFire XD API provides additional information and examples for using callbacks.