|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.appia.protocols.total.sequencer.Buffer
public class Buffer
Class that implements a buffer to store events while waiting for the total order.
Constructor Summary | |
---|---|
Buffer()
Constructs a new Buffer object. |
Method Summary | |
---|---|
InfoMessage |
find(int emissor,
int seq)
Finds and returns if available a InfoMessage object. |
GroupSendableEvent |
getMinimum()
Returns an event from the buffer in a deterministic way. |
GroupSendableEvent |
getReadyEvent(int ordem)
Gives an event ready to be delivered |
void |
insert(int o,
int e,
int seq,
GroupSendableEvent ev)
Insert a new InfoMessage |
void |
insertEvent(int emissor,
int seq,
GroupSendableEvent ev)
Insert a new event |
void |
insertOrder(int o,
int emissor,
int seq)
Insert a new order |
boolean |
isEmpty()
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Buffer()
Method Detail |
---|
public void insert(int o, int e, int seq, GroupSendableEvent ev)
o
- total order of the messagee
- sender of the messageseq
- individual sequence numberev
- the event to be storedpublic InfoMessage find(int emissor, int seq)
emissor
- sender of the message that wantedseq
- sequence number of the message wantedpublic void insertOrder(int o, int emissor, int seq)
o
- the order to be given to the messageemissor
- the sender of the message to be orderedseq
- the individual sequence number of the message to be orderedpublic void insertEvent(int emissor, int seq, GroupSendableEvent ev)
emissor
- the sender of the message to be orderedseq
- the individual sequence number of the message to be orderedev
- the event to be orderedpublic GroupSendableEvent getReadyEvent(int ordem)
public boolean isEmpty()
public int size()
public GroupSendableEvent getMinimum()
|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |