protected void flushQueue(final Map<Address,Message> queue) { if(queue.isEmpty()) return; for(Message msg: queue.values()) { boolean oob=msg.isFlagSet(Message.Flag.OOB), internal=msg.isFlagSet(Message.Flag.INTERNAL); transport.msg_processing_policy.process(msg, oob, internal); } queue.clear(); }
protected void processBatch(MessageBatch batch, boolean oob, boolean internal) { try { if(batch != null && !batch.isEmpty()) msg_processing_policy.process(batch, oob, internal); } catch(Throwable t) { log.error("processing batch failed", t); } }
protected void handleSingleMessage(DataInput in, boolean multicast) { try { Message msg=new Message(false); // don't create headers, readFrom() will do this msg.readFrom(in); if(!multicast && unicastDestMismatch(msg.getDest())) return; boolean oob=msg.isFlagSet(Message.Flag.OOB), internal=msg.isFlagSet(Message.Flag.INTERNAL); msg_processing_policy.process(msg, oob, internal); } catch(Throwable t) { log.error(String.format(Util.getMessage("IncomingMsgFailure"), local_addr), t); } }
protected void flushQueue(final Map<Address,Message> queue) { if(queue.isEmpty()) return; for(Message msg: queue.values()) { boolean oob=msg.isFlagSet(Message.Flag.OOB), internal=msg.isFlagSet(Message.Flag.INTERNAL); transport.msg_processing_policy.process(msg, oob, internal); } queue.clear(); }
protected void processBatch(MessageBatch batch, boolean oob, boolean internal) { try { if(batch != null && !batch.isEmpty()) msg_processing_policy.process(batch, oob, internal); } catch(Throwable t) { log.error("processing batch failed", t); } }
protected void handleSingleMessage(DataInput in, boolean multicast) { try { Message msg=new Message(false); // don't create headers, readFrom() will do this msg.readFrom(in); if(!multicast && unicastDestMismatch(msg.getDest())) return; boolean oob=msg.isFlagSet(Message.Flag.OOB), internal=msg.isFlagSet(Message.Flag.INTERNAL); msg_processing_policy.process(msg, oob, internal); } catch(Throwable t) { log.error(String.format(Util.getMessage("IncomingMsgFailure"), local_addr), t); } }