public static void addClientCQsAndInterestList(Map.Entry entry, HAEventWrapper haEventWrapper, Map haContainer, String regionName) { ClientProxyMembershipID proxyID = ((HAContainerWrapper)haContainer) .getProxyID(regionName); if (haEventWrapper.getClientCqs() != null) { CqNameToOp clientCQ = haEventWrapper.getClientCqs().get(proxyID); if (clientCQ != null) { ((ClientUpdateMessageImpl)entry.getValue()).addClientCqs(proxyID, clientCQ); } } // if (haEventWrapper.getPutInProgress()) { // ((HAEventWrapper)entry.getKey()).setPutInProgress(true); // } // This is a remote HAEventWrapper. // Add new Interested client lists. ClientUpdateMessageImpl clientMsg = (ClientUpdateMessageImpl)haEventWrapper .getClientUpdateMessage(); if (clientMsg.isClientInterestedInUpdates(proxyID)) { ((ClientUpdateMessageImpl)entry.getValue()).addClientInterestList( proxyID, true); } else if (clientMsg.isClientInterestedInInvalidates(proxyID)) { ((ClientUpdateMessageImpl)entry.getValue()).addClientInterestList( proxyID, false); } }
public static void addClientCQsAndInterestList(Map.Entry entry, HAEventWrapper haEventWrapper, Map haContainer, String regionName) { ClientProxyMembershipID proxyID = ((HAContainerWrapper)haContainer) .getProxyID(regionName); if (haEventWrapper.getClientCqs() != null) { CqNameToOp clientCQ = haEventWrapper.getClientCqs().get(proxyID); if (clientCQ != null) { ((ClientUpdateMessageImpl)entry.getValue()).addClientCqs(proxyID, clientCQ); } } // if (haEventWrapper.getPutInProgress()) { // ((HAEventWrapper)entry.getKey()).setPutInProgress(true); // } // This is a remote HAEventWrapper. // Add new Interested client lists. ClientUpdateMessageImpl clientMsg = (ClientUpdateMessageImpl)haEventWrapper .getClientUpdateMessage(); if (clientMsg.isClientInterestedInUpdates(proxyID)) { ((ClientUpdateMessageImpl)entry.getValue()).addClientInterestList( proxyID, true); } else if (clientMsg.isClientInterestedInInvalidates(proxyID)) { ((ClientUpdateMessageImpl)entry.getValue()).addClientInterestList( proxyID, false); } }