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);
    }
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 ) ; }
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