/** * Clears the resource used by CQ. */ @Override protected void cleanup() throws CqException { // CqBaseRegion try { if (this.cqBaseRegion != null && !this.cqBaseRegion.isDestroyed()) { this.cqBaseRegion.getFilterProfile().closeCq(this); CacheClientProxy clientProxy = ccn.getClientProxy(clientProxyId); clientProxy.decCqCount(); if (clientProxy.hasNoCq()) { cqService.stats().decClientsWithCqs(); } } } catch (Exception ex) { // May be cache is being shutdown if (logger.isDebugEnabled()) { logger.debug("Failed to remove CQ from the base region. CqName :{}", cqName); } } }
clientProxy.decCqCount(); if (clientProxy.hasNoCq()) { this.stats.decClientsWithCqs();