private void putReply(GfxdFunctionReplyMessage replyMsg) { if (this.dm != null) { replyMsg.setRecipient(getSenderForReply()); ReplySender sender = getReplySender(this.dm); // don't send anything after lastResult with DirectReplySender if (this.replySequenceId != TERMINAL_REPLY_SEQID || !(sender instanceof DirectReplySender)) { sender.putOutgoing(replyMsg); } } // process for self in place else { replyMsg.setSender(Misc.getMyId()); this.processor.process(replyMsg); } // can happen if an exception is sent after lastResult invocation if (this.replySequenceId != TERMINAL_REPLY_SEQID) { this.replySequenceId++; } }
private void putReply(GfxdFunctionReplyMessage replyMsg) { if (this.dm != null) { replyMsg.setRecipient(getSenderForReply()); ReplySender sender = getReplySender(this.dm); // don't send anything after lastResult with DirectReplySender if (this.replySequenceId != TERMINAL_REPLY_SEQID || !(sender instanceof DirectReplySender)) { sender.putOutgoing(replyMsg); } } // process for self in place else { replyMsg.setSender(Misc.getMyId()); this.processor.process(replyMsg); } // can happen if an exception is sent after lastResult invocation if (this.replySequenceId != TERMINAL_REPLY_SEQID) { this.replySequenceId++; } }
private void putReply(GfxdFunctionReplyMessage replyMsg) { if (this.dm != null) { replyMsg.setRecipient(getSenderForReply()); ReplySender sender = getReplySender(this.dm); // don't send anything after lastResult with DirectReplySender if (this.replySequenceId != TERMINAL_REPLY_SEQID || !(sender instanceof DirectReplySender)) { sender.putOutgoing(replyMsg); } } // process for self in place else { replyMsg.setSender(Misc.getMyId()); this.processor.process(replyMsg); } // can happen if an exception is sent after lastResult invocation if (this.replySequenceId != TERMINAL_REPLY_SEQID) { this.replySequenceId++; } }