com.softwareag.um.io.DataHandler Interface Reference

This interface is passed to the TransportFactory.connect method when you want to create an AsynchronousTransport. More...

Public Member Functions

void onRead (ByteBuffer buffer, AsynchronousTransport transport)
 Called when data has been read from transport. More...
 

Detailed Description

This interface is passed to the TransportFactory.connect method when you want to create an AsynchronousTransport.

It is also passed to the TransportFactory.bind method when you want an AsynchronousServerTransport. The onRead method will be called when data has been read from the AsynchronousTransport.

Member Function Documentation

void com.softwareag.um.io.DataHandler.onRead ( ByteBuffer  buffer,
AsynchronousTransport  transport 
)

Called when data has been read from transport.

The data is passed to the user in a ByteBuffer.

Parameters
bufferByteBuffer containing the data read from the Transport
transportThe Transport that data has been read from