/** * Unregisters interest in the input region name and key * * @param regionName * The fully-qualified name of the region in which to unregister * interest * @param keyOfInterest * The key in which to unregister interest * @param isClosing * Whether the caller is closing */ protected void unregisterClientInterest(String regionName, Object keyOfInterest, int interestType, boolean isClosing) { // only unregister durable interest if isClosing and !keepalive if (!isClosing /* explicit unregister */ || !getDurableKeepAlive() /* close and no keepAlive*/) { this.cils[RegisterInterestTracker.durableInterestListIndex]. unregisterClientInterest(regionName, keyOfInterest, interestType); } // always unregister non durable interest this.cils[RegisterInterestTracker.interestListIndex]. unregisterClientInterest(regionName, keyOfInterest, interestType); }
/** * Unregisters interest in the input region name and key * * @param regionName * The fully-qualified name of the region in which to unregister * interest * @param keyOfInterest * The key in which to unregister interest * @param isClosing * Whether the caller is closing */ protected void unregisterClientInterest(String regionName, Object keyOfInterest, int interestType, boolean isClosing) { // only unregister durable interest if isClosing and !keepalive if (!isClosing /* explicit unregister */ || !getDurableKeepAlive() /* close and no keepAlive*/) { this.cils[RegisterInterestTracker.durableInterestListIndex]. unregisterClientInterest(regionName, keyOfInterest, interestType); } // always unregister non durable interest this.cils[RegisterInterestTracker.interestListIndex]. unregisterClientInterest(regionName, keyOfInterest, interestType); }