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

Method createNewMessage

routing/MessageRouter.java:473–477  ·  view source on GitHub ↗

Creates a new message to the router. @param m The message to create @return True if the creation succeeded, false if not (e.g. the message was too big for the buffer)

(Message m)

Source from the content-addressed store, hash-verified

471 * the message was too big for the buffer)
472 */
473 public boolean createNewMessage(Message m) {
474 m.setTtl(this.msgTtl);
475 addToMessages(m, true);
476 return true;
477 }
478
479 /**
480 * Deletes a message from the buffer and informs message listeners

Callers

nothing calls this directly

Calls 2

addToMessagesMethod · 0.95
setTtlMethod · 0.80

Tested by

no test coverage detected