/** * Support for server-side interest registration */ public void addSingleInterest(Object key, int interestType, InterestResultPolicy pol, boolean isDurable, boolean receiveUpdatesAsInvalidates) { RegisterInterestTracker rit = this.pool.getRITracker(); boolean finished = false; try { rit.addSingleInterest(this.region, key, interestType, pol, isDurable, receiveUpdatesAsInvalidates); finished = true; } finally { if (!finished) { rit.removeSingleInterest(this.region, key, interestType, isDurable, receiveUpdatesAsInvalidates); } } }
try { rit.addSingleInterest(this.region, key, interestType, policy, isDurable, receiveUpdatesAsInvalidates); result = RegisterInterestOp.execute(this.pool, this.regionName, key, interestType, policy,