MCPcopy Create free account
hub / github.com/akeranen/the-one / createNewMessage

Method createNewMessage

routing/SprayAndWaitRouter.java:78–86  ·  view source on GitHub ↗
(Message msg)

Source from the content-addressed store, hash-verified

76 }
77
78 @Override
79 public boolean createNewMessage(Message msg) {
80 makeRoomForNewMessage(msg.getSize());
81
82 msg.setTtl(this.msgTtl);
83 msg.addProperty(MSG_COUNT_PROPERTY, new Integer(initialNrofCopies));
84 addToMessages(msg, true);
85 return true;
86 }
87
88 @Override
89 public void update() {

Callers

nothing calls this directly

Calls 5

makeRoomForNewMessageMethod · 0.80
getSizeMethod · 0.80
setTtlMethod · 0.80
addToMessagesMethod · 0.80
addPropertyMethod · 0.45

Tested by

no test coverage detected