com.softwareag.um.io.AsynchronousTransport Class Reference

This is a client side Transport object. More...

Inheritance diagram for com.softwareag.um.io.AsynchronousTransport:
com.softwareag.um.io.Transport

Public Member Functions

void close ()
 Close the Transport so that data can no longer be read/written.
 
boolean isClosed ()
 Used to check if the Transport has been closed. More...
 
void write (ByteBuffer buffer) throws IOException
 Write (and flush) the data stored in the ByteBuffer to the network/file depending on the protocol used in the TransportContext. More...
 

Detailed Description

This is a client side Transport object.

It is constructed on the client side by creating a ClientTransportContext which is then passed to TransportFactory.bind with the required callback objects (DataHandler, CloseHandler). On the server side, an AsynchronousServerTransport will accept connections and handle them as AsynchronousTransports.

Member Function Documentation

boolean com.softwareag.um.io.AsynchronousTransport.isClosed ( )

Used to check if the Transport has been closed.

Returns
true in the Transport has been closed

Implements com.softwareag.um.io.Transport.

void com.softwareag.um.io.AsynchronousTransport.write ( ByteBuffer  buffer) throws IOException

Write (and flush) the data stored in the ByteBuffer to the network/file depending on the protocol used in the TransportContext.

Parameters
buffercontains the binary data to write to the Transport