예제 #1
0
 /**
  * Add a new message sent
  *
  * @param messageID the message ID
  * @param destinations the destination set
  * @param initialSequenceNumber the initial sequence number
  * @param deliverToMyself true if *this* member is in destination sent, false otherwise
  */
 public void addNewMessageToSend(
     MessageID messageID,
     Collection<Address> destinations,
     long initialSequenceNumber,
     boolean deliverToMyself) {
   MessageInfo messageInfo = new MessageInfo(destinations, initialSequenceNumber, deliverToMyself);
   if (deliverToMyself) {
     messageInfo.setProposeReceived(messageID.getAddress());
   }
   sentMessages.put(messageID, messageInfo);
 }
예제 #2
0
 public Address getOrigin() {
   return messageID.getAddress();
 }