Package com.iizix.comm
Interface TransactionCommListener
- All Known Subinterfaces:
- IClientInstanceListener,- TransactionCommListener2
- All Known Implementing Classes:
- NonUIClient,- SessionTransMgr,- TransactionProcessor
public interface TransactionCommListener
The Transaction communication listener.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- void- onCommClosed- (TransactionComm comm, int code, String reason) Called when the communication link is closed.- void- onCommClosing- (TransactionComm comm) Called when the communication link is closing.- voidCalled 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, 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 Details- onCommConnectedCalled when the communication link is connected.- Parameters:
- comm- The transaction communication instance.
 
- onCommDataCalled 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.
 
- onCommHeartBeatCalled when the communication link has received data.- Parameters:
- comm- The transaction communication instance.
- duration- The duration of the heart-beat in milliseconds.
 
- onCommTimeoutCalled 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.
 
- onCommErrorCalled when the communication link is closed.- Parameters:
- comm- The transaction communication instance.
- e- The exception.
 
- onCommClosingCalled when the communication link is closing.- Parameters:
- comm- The transaction communication instance.
 
- onCommClosedCalled when the communication link is closed.- Parameters:
- comm- The transaction communication instance.