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 Summary
Modifier and TypeMethodDescriptionvoid
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.void
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, 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
onCommConnected
Called when the communication link is connected.- Parameters:
comm
- The transaction communication instance.
onCommData
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
Called when the communication link has received data.- Parameters:
comm
- The transaction communication instance.duration
- The duration of the heart-beat in milliseconds.
onCommTimeout
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
Called when the communication link is closed.- Parameters:
comm
- The transaction communication instance.e
- The exception.
onCommClosing
Called when the communication link is closing.- Parameters:
comm
- The transaction communication instance.
onCommClosed
Called when the communication link is closed.- Parameters:
comm
- The transaction communication instance.