public interface EventCallback
|Modifier and Type||Method and Description|
Any cleanup required when the callback is destroyed should be done here.
Initialize this callback with parameters provided in the form of given string.
This method is invoked when the callback is fired on a table event.
void onEvent(Event event) throws SQLException
Eventobject that provides details of the event including the old row, update row etc.
SQLException- On failure. If an exception is thrown in a writer then the current update is aborted. If an exception is thrown in a listener then the update goes through but exception is propagated back to the originating node.
void close() throws SQLException
SQLException- on error
void init(String initStr) throws SQLException
initStr- String used to initialize this callback
SQLException- on an error during initialization
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.