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 Details

    • 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 nanoseconds.
    • 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, 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, String reason)
      Called when the communication link is closed.
      Parameters:
      comm - The transaction communication instance.