appia.protocols.fifo.fifomulticast
Class WaitingMessage

java.lang.Object
  |
  +--appia.protocols.fifo.fifomulticast.WaitingMessage

public class WaitingMessage
extends java.lang.Object

this class keeps information about the Pending message and number of endPoints that didn't ack
It is also a Node of the global list of messages

See Also:
FifoMulticastSession

Field Summary
protected  int endPoints
           
 appia.events.SendableEvent event
           
protected  int nResends
           
 int seqNumber
           
protected  long timeStamp
           
 
Constructor Summary
WaitingMessage(appia.events.SendableEvent e, int nResends, int seqNumber)
           
WaitingMessage(appia.events.SendableEvent e, long ts, int nResends, int seqNumber)
           
 
Method Summary
 void addHeader(Header h)
          add a header into the LinkedList of headers
 boolean equals(java.lang.Object o)
           
 void removeHeader(Header h)
          remove a header from the LinkedList of headers
 java.lang.Object[] toHeaderArray()
          gets a array of headers of Peers that this message was sent to.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event

public appia.events.SendableEvent event

endPoints

protected int endPoints

nResends

protected int nResends

seqNumber

public int seqNumber

timeStamp

protected long timeStamp
Constructor Detail

WaitingMessage

public WaitingMessage(appia.events.SendableEvent e,
                      int nResends,
                      int seqNumber)

WaitingMessage

public WaitingMessage(appia.events.SendableEvent e,
                      long ts,
                      int nResends,
                      int seqNumber)
Method Detail

addHeader

public void addHeader(Header h)
add a header into the LinkedList of headers


removeHeader

public void removeHeader(Header h)
remove a header from the LinkedList of headers


toHeaderArray

public java.lang.Object[] toHeaderArray()
gets a array of headers of Peers that this message was sent to.

Returns:
a array of headers
See Also:
Header

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object