public class ReceivingSequenceAgent extends java.lang.Object implements ISequenceAgent
| Modifier and Type | Field and Description |
|---|---|
boolean |
bStartSequencing
Boolean variable to tell about sequence numbering is start or not
|
| Modifier and Type | Method and Description |
|---|---|
static ReceivingSequenceAgent |
createInstance()
Create new instance or old one depends on existing of instance variable.
|
void |
processReceive(ISegmentSet objSegmentSet)
Invoked when system receive message.
|
void |
processSend(ISegmentSet objSegmentSet)
Process and populate the sequence numbering.
|
void |
setEndSequencing(boolean flag)
Ends the Sequence Numbering
|
void |
setInitialQueueValue(int value)
Sets the initial value in Queue.
|
void |
setQueueLength(int length)
Sets Queue length.
|
void |
setStartSequencing(boolean flag)
Starts the Sequence Numbering
|
public boolean bStartSequencing
public static ReceivingSequenceAgent createInstance()
public void setInitialQueueValue(int value)
setInitialQueueValue in interface ISequenceAgentvalue - - initial value of Queue.public void setQueueLength(int length)
setQueueLength in interface ISequenceAgentlength - - length of Queue.public void setStartSequencing(boolean flag)
setStartSequencing in interface ISequenceAgentflag - - To start set true.public void setEndSequencing(boolean flag)
setEndSequencing in interface ISequenceAgentflag - - To end set false.public void processSend(ISegmentSet objSegmentSet) throws InvalidMessageException
processSend in interface ISequenceAgentobjSegmentSet - - Segment set to which populate.InvalidMessageException - - Thrown When Message Populated is Invalid.public void processReceive(ISegmentSet objSegmentSet) throws InvalidMessageException
processReceive in interface ISequenceAgentobjSegmentSet - - Segment set filled with Sequence Number.InvalidMessageException - - Thrown When Message Populated is Invalid.