public static boolean isDirtyRead(SubscriptionInfo sub, MsgUnitWrapper msgUnitWrapper)
throws XmlBlasterException {
MsgQosData msgQosData = msgUnitWrapper.getMsgQosData();
if (sub.getSessionInfo().getSubjectInfo().isCluster()) {
if (log.isLoggable(Level.FINEST)) log.finest("TopicHandler: Slave node '" + sub.getSessionInfo() + "' has dirty read message '" + msgUnitWrapper.toXml());
if (msgQosData.dirtyRead(sub.getSessionInfo().getSubjectInfo().getNodeId())) {
if (log.isLoggable(Level.FINE)) log.fine("TopicHandler: Slave node '" + sub.getSessionInfo() + "' has dirty read message '" + sub.getSubscriptionId() + "', '" + sub.getKeyData().getOid() + "' we don't need to send it back");
return true;
}
}
return false;