Package org.xmlBlaster.util.qos

Examples of org.xmlBlaster.util.qos.QosData.addClientProperty()


               QosData qosData = msgUnit.getQosData();
               Destination[] destinations = ((MsgQosData)qosData).getDestinationArr();
               if (destinations != null) {
                  long numOfTransactions = qosData.getClientProperty(NUM_OF_TRANSACTIONS, 1L);
                  // negative amount of transactions means ptp entries
                  qosData.addClientProperty(NUM_OF_TRANSACTIONS, -numOfTransactions);
                  for (int i=0; i < destinations.length; i++) {
                     String sessionId = destinations[i].getDestination().getRelativeName();
                     I_ReplSlave slave = (I_ReplSlave)this.replSlaveMap.get(sessionId);
                     if (slave != null) {
                        slave.incrementPtPEntries(numOfTransactions);
View Full Code Here


            long messageSeq = qosData.getClientProperty(MESSAGE_SEQ, 0L);
            long numOfTransactions = qosData.getClientProperty(NUM_OF_TRANSACTIONS, 1L);
            int prio = ((MsgQosData)qosData).getPriority().getInt();

            long transactionSeq = counter.trans[prio] + numOfTransactions;
            qosData.addClientProperty(TRANSACTION_SEQ, transactionSeq);
            if (messageSeq > 0L)
               counter.msg = messageSeq;
            if (transactionSeq > 0L)
               counter.trans[prio] = transactionSeq;
            if (messageSeq != 0L && transactionSeq != 0L) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.