public interface EventCallback
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Any cleanup required when the callback is destroyed should be done here.
|
void |
init(java.lang.String initStr)
Initialize this callback with parameters provided in the form of given
string.
|
void |
onEvent(Event event)
This method is invoked when the callback is fired on a table event.
|
void onEvent(Event event) throws java.sql.SQLException
event - a Event object that provides details of the event
including the old row, update row etc.java.sql.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 java.sql.SQLException
java.sql.SQLException - on errorvoid init(java.lang.String initStr) throws java.sql.SQLException
initStr - String used to initialize this callbackjava.sql.SQLException - on an error during initializationCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.