All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iBus.LostMessage

java.lang.Object
   |
   +----iBus.Event
           |
           +----iBus.LostMessage

public class LostMessage
extends Event
A LostMessage encpasulates the sequence numbers of lost messages


Constructor Index

 o LostMessage()
Create a void LostMessage object to be deserialized
 o LostMessage(Stack, long, long, iBusURL, iBusURL)
Create a lost message event to be passed down the stack.

Method Index

 o getChannel()
Returns the URL of the channel the Acknowledgement is for.
 o getFromSeq()
Return the start sequence number
 o getToSeq()
Return the end sequence number
 o id()
Returns the identifier of this type of event.
 o setFromSeq(long)
Set the start sequence number.
 o setToSeq(long)
Set the end sequence number.

Constructors

 o LostMessage
 public LostMessage(Stack stack,
                    long from,
                    long to,
                    iBusURL destination,
                    iBusURL channel)
Create a lost message event to be passed down the stack.

Parameters:
stack - the creator stack
from - start sequence number
to - end sequence number
destination - the destination of the event
channel - the URL of the channel the Acknowledgement is for
 o LostMessage
 public LostMessage()
Create a void LostMessage object to be deserialized

Methods

 o setFromSeq
 public void setFromSeq(long seqNum)
Set the start sequence number.

Parameters:
seqNum - the start sequence number
 o getFromSeq
 public long getFromSeq()
Return the start sequence number

Returns:
the start sequence number
 o setToSeq
 public void setToSeq(long seqNum)
Set the end sequence number.

Parameters:
seqNum - the start sequence number
 o getToSeq
 public long getToSeq()
Return the end sequence number

Returns:
the end sequence number
 o getChannel
 public iBusURL getChannel()
Returns the URL of the channel the Acknowledgement is for.

Returns:
the URL of the channel the Acknowledgement is for
 o id
 public int id()
Returns the identifier of this type of event.

Returns:
the identifier of this type of event
Overrides:
id in class Event

All Packages  Class Hierarchy  This Package  Previous  Next  Index