Search in sources :

Example 11 with ToaHeader

use of org.jgroups.protocols.tom.ToaHeader in project JGroups by belaban.

the class TOA_UnitTest method assertProposedMessageSent.

private void assertProposedMessageSent(long expectedSequenceNumber) {
    assertEquals(1, downProtocol.messages.size());
    Message message = downProtocol.messages.remove(0);
    ToaHeader header = message.getHeader(TOA_ID);
    assertEquals(ToaHeader.PROPOSE_MESSAGE, header.getType());
    assertEquals(expectedSequenceNumber, header.getSequencerNumber());
}
Also used : Message(org.jgroups.Message) ToaHeader(org.jgroups.protocols.tom.ToaHeader)

Aggregations

Message (org.jgroups.Message)11 ToaHeader (org.jgroups.protocols.tom.ToaHeader)11 Address (org.jgroups.Address)10 MessageID (org.jgroups.protocols.tom.MessageID)10