uCosminexus Stream Data Platform - Application Framework Application Development Guide
This is the interface that implements the process for the method that issues a callback when a tuple is generated on the SDP server.
In the custom adaptor, create a class in which the StreamEventListener interface is implemented and enter the processing that you want to take place during a callback in the onEvent method.
Once the registerForNotification method of the StreamOutput interface is used to register an object of the class in which the StreamEventListener interface is implemented, the registered object's onEvent method issues a callback the next time a tuple is generated on the SDP server.
The following table shows the StreamEventListener interface method list.
| Return value | Method name | Function |
|---|---|---|
| void | onEvent(StreamTuple tuple) | This method issues a callback when a tuple is generated on the SDP server. |
The StreamEventListener interface inherits the java.rmi.Remote class.
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.