public boolean closeDurableClientProxy(String durableClientId) throws CacheException {
  CacheClientProxy ccp=getClientProxy(durableClientId);
  if (ccp == null) {
    return false;
  }
  if (ccp.isPaused() && !ccp.isConnected()) {
    ccp.setKeepAlive(false);
    closeDeadProxies(Collections.singletonList(ccp),true);
    return true;
  }
 else {
    if (logger.isDebugEnabled()) {
      logger.debug("Cannot close running durable client: {}",durableClientId);
    }
    throw new CacheException("Cannot close a running durable client : " + durableClientId){
    }
;
  }
}

public boolean closeDurableClientProxy ( String durableClientId ) throws CacheException { CacheClientProxy ccp = getClientProxy ( durableClientId ) ; if ( ccp == null ) { return false ; } if ( ccp . isPaused ( ) && ! ccp . isConnected ( ) ) { ccp . setKeepAlive ( false ) ; closeDeadProxies ( Collections . singletonList ( ccp ) , true ) ; return true ; } else { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Cannot close running durable client: {}" , durableClientId ) ; } throw new CacheException ( "Cannot close a running durable client : " + durableClientId ) { } ; } }
shuts down durable client proxy
