rtpi.reliability
Interface ReliableRecipient

All Known Implementing Classes:
Rtpi

public abstract interface ReliableRecipient

This interface is to be implemented by a class that whishes to be notified about ADUs received by a reliability service.

Author:
Martin Mauve

Method Summary
 void connectionClosed()
          This method is called when the reliability service used for RTP/I has encountered a fatal error.
 void receiveRtpiAdu(java.util.LinkedList packets)
          An ADU has been completely received.
 void rtpiAduLost(int participantID, long subID, int type, int sequenceNumber, int timestamp)
          This method is invoked when the reliability service has detected a lost packet and was not instructed to repair the loss of this packet.
 void rtpiCouldNotRecover(int participantID, long subID, int type, int sequenceNumber, int timestamp)
          This method is invoked when the reliability service has detected a lost packet and was instructed to repair the loss but was unable to do so.
 

Method Detail

receiveRtpiAdu

public void receiveRtpiAdu(java.util.LinkedList packets)
An ADU has been completely received.
Parameters:
packets - The packets belonging to the ADU. They MUST be of the type RtpiDataPacket.

rtpiAduLost

public void rtpiAduLost(int participantID,
                        long subID,
                        int type,
                        int sequenceNumber,
                        int timestamp)
This method is invoked when the reliability service has detected a lost packet and was not instructed to repair the loss of this packet.
Parameters:
participantID - The ID of the sender of the lost ADU.
subID - The ID of the affected subcomponent.
type - The type (STATE, EVENT, etc.) of the lost ADU.
sequenceNumber - The sequence number of the lost ADU.
timestamp - A timestamp that is greater or equal to the timestamp of the lost ADU.

rtpiCouldNotRecover

public void rtpiCouldNotRecover(int participantID,
                                long subID,
                                int type,
                                int sequenceNumber,
                                int timestamp)
This method is invoked when the reliability service has detected a lost packet and was instructed to repair the loss but was unable to do so.
Parameters:
participantID - The ID of the sender of the lost ADU.
subID - The ID of the affected subcomponent.
type - The type (STATE, EVENT, etc.) of the lost ADU.
sequenceNumber - The sequence number of the lost ADU.
timestamp - A timestamp that is greater or equal to the timestamp of the lost ADU.

connectionClosed

public void connectionClosed()
This method is called when the reliability service used for RTP/I has encountered a fatal error.