7.5 StreamEventListener interface (for in-process connection)

Explanation

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.

Method

The following table shows the StreamEventListener interface method list.

Return valueMethod nameFunction
voidonEvent(StreamTuple tuple)This method issues a callback when a tuple is generated on the SDP server.

Notes

The StreamEventListener interface inherits the java.rmi.Remote class.

Organization of this section
onEvent(StreamTuple tuple) method