Package com.iizix.comm
Interface TransactionCommListener
- All Known Subinterfaces:
- IClientInstanceListener,- TransactionCommListener2
 - All Known Implementing Classes:
- NonUIClient,- SessionTransMgr,- TransactionProcessor
 - public interface TransactionCommListenerThe Transaction communication listener.- Author:
- Christopher Mindus
 
- Method Summary- All Methods Instance Methods Abstract Methods - Modifier and Type - Method - Description - void- onCommClosed(TransactionComm comm, int code, java.lang.String reason)Called when the communication link is closed.- void- onCommClosing(TransactionComm comm)Called when the communication link is closing.- void- onCommConnected(TransactionComm comm)Called when the communication link is connected.- void- onCommData(TransactionComm comm, ReadTransaction trans, int size)Called when the communication link has received data.- void- onCommError(TransactionComm comm, java.lang.Throwable e)Called when the communication link is closed.- void- onCommHeartBeat(TransactionComm comm, long duration)Called when the communication link has received data.- void- onCommTimeout(TransactionComm comm, boolean isReadTimeout)Called when the communication link has timed out on a read or write operation.
 
- Method Detail- onCommConnected- void onCommConnected(TransactionComm comm) Called when the communication link is connected.- Parameters:
- comm- The transaction communication instance.
 
 - onCommData- void onCommData(TransactionComm comm, ReadTransaction trans, int size) Called when the communication link has received data.- Parameters:
- comm- The transaction communication instance.
- trans- The transaction received.
- size- The size of the data received, as it may have been uncompressed.
 
 - onCommHeartBeat- void onCommHeartBeat(TransactionComm comm, long duration) Called when the communication link has received data.- Parameters:
- comm- The transaction communication instance.
- duration- The duration of the heart-beat in milliseconds.
 
 - onCommTimeout- void onCommTimeout(TransactionComm comm, boolean isReadTimeout) Called when the communication link has timed out on a read or write operation.- Parameters:
- comm- The transaction communication instance.
- isReadTimeout- Flag indicating read timeout when true, false indicates write timeout.
 
 - onCommError- void onCommError(TransactionComm comm, java.lang.Throwable e) Called when the communication link is closed.- Parameters:
- comm- The transaction communication instance.
- e- The exception.
 
 - onCommClosing- void onCommClosing(TransactionComm comm) Called when the communication link is closing.- Parameters:
- comm- The transaction communication instance.
 
 - onCommClosed- void onCommClosed(TransactionComm comm, int code, java.lang.String reason) Called when the communication link is closed.- Parameters:
- comm- The transaction communication instance.