Package org.apache.hedwig.protocol.PubSubProtocol

Examples of org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId


        }

        Map<ByteString, RegionSpecificSeqId> m2map = inMapForm(m2);

        for (RegionSpecificSeqId lmsid1 : m1.getRemoteComponentsList()) {
            RegionSpecificSeqId lmsid2 = m2map.get(lmsid1.getRegion());
            if (lmsid2 == null) {
                return false;
            }
            if (lmsid1.getSeqId() != lmsid2.getSeqId()) {
                return false;
            }
        }

        return true;
View Full Code Here


        Map<ByteString, RegionSpecificSeqId> id2Map = MessageIdUtils.inMapForm(id2);

        for (RegionSpecificSeqId rrsid1 : id1.getRemoteComponentsList()) {
            ByteString region = rrsid1.getRegion();

            RegionSpecificSeqId rssid2 = id2Map.get(region);

            if (rssid2 == null) {
                newIdBuilder.addRemoteComponents(rrsid1);
                continue;
            }

            newIdBuilder.addRemoteComponents((rrsid1.getSeqId() > rssid2.getSeqId()) ? rrsid1 : rssid2);

            // remove from map
            id2Map.remove(region);
        }
View Full Code Here

TOP

Related Classes of org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId

Copyright © 2018 www.massapicom. 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.