Sets the maximum number of visited resources to store per user.<p>

@param maxVisitedCount the maximum number of visited resources to store per user
518506
public void setMaxVisitedCount(String maxVisitedCount) {

        if (m_frozen) {
            throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_SUBSCRIPTIONMANAGER_FROZEN_0));
        }
        try {
            int intValue = Integer.parseInt(maxVisitedCount);
            m_maxVisitedCount = (intValue > 0) ? intValue : DEFAULT_MAX_VISITEDCOUNT;
        } catch (NumberFormatException e) {
            // use default value
            m_maxVisitedCount = DEFAULT_MAX_VISITEDCOUNT;
        }
    }
888694
public void setGroupedResourceCounts(java.util.Collection<GroupedResourceCount> groupedResourceCounts) {
        if (groupedResourceCounts == null) {
            this.groupedResourceCounts = null;
            return;
        }

        this.groupedResourceCounts = new com.amazonaws.internal.SdkInternalList<GroupedResourceCount>(groupedResourceCounts);
    }
357197
def setPageCount( self, pageCount ):
        
        if ( pageCount == self._pageCount ):
            return
        
        pageCount = max(1, pageCount)
        
        self._pageCount = pageCount
        self._pagesSpinner.setMaximum(pageCount)
        self._pagesLabel.setText('of %i for ' % pageCount)
        
        if ( pageCount and self.currentPage() <= 0 ):
            self.setCurrentPage(1)
        
        elif ( pageCount < self.currentPage() ):
            self.setCurrentPage(pageCount)
        
        if ( not self.signalsBlocked() ):
            self.pageCountChanged.emit(pageCount)
        
        self._prevButton.setEnabled(self.currentPage() > 1)
        self._nextButton.setEnabled(self.currentPage() < pageCount)
1126472
public void setUsers(java.util.Collection<UserMetadata> users) {
        if (users == null) {
            this.users = null;
            return;
        }

        this.users = new java.util.ArrayList<UserMetadata>(users);
    }
37257
private void addIfNotVisited(Object object, Class<?> clazz) {
    if (object != null && !visited.containsKey(object)) {
      toVisit.add(object);
      visited.put(object, clazz);
    }
  }
928785
public void setMaxBatchSize(final String maxBatchSize) {

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr.debug(this, TRACE, "MaxBatchSize", maxBatchSize);
        }
        _maxBatchSize = (maxBatchSize == null ? null : Integer.valueOf(maxBatchSize));

    }
1176923
def set_max_workers(self, nb):
        
        self.count_lock.acquire()
        self.shared['max_workers'] = nb
        if self.shared['workers'] > self.shared['max_workers']:
            self.kill(self.shared['workers'] - self.shared['max_workers'])
        self.count_lock.release()
359977
@Override
    public void setEntryCounting(boolean enable) {
        if (enable) {
            if (!entryCountingEnable) {
                // It was disable before but now it will be enable.
                // Therefore, we increase the entry count as size of records.
                cacheContext.increaseEntryCount(size());
            }
        } else {
            if (entryCountingEnable) {
                // It was enable before but now it will be disable.
                // Therefore, we decrease the entry count as size of records.
                cacheContext.decreaseEntryCount(size());
            }
        }
        this.entryCountingEnable = enable;
    }
864577
public synchronized void setMax(int max) {
        if (max < 0) {
            max = 0;
        }
        if (max != mMax) {
            mMax = max;
            postInvalidate();

            if (mProgress > max) {
                mProgress = max;
            }
            refreshProgress(android.R.id.progress, mProgress, false);
        }
    }
1163197
public void setUserCreated(String userCreated) {

        try {
            String userCreatedName = OpenCms.getImportExportManager().translateUser(userCreated);
            try {
                m_resourceBuilder.setUserCreated(getCms().readUser(userCreatedName).getId());
            } catch (@SuppressWarnings("unused") CmsDbEntryNotFoundException e) {
                m_resourceBuilder.setUserCreated(getRequestContext().getCurrentUser().getId());
            }
        } catch (Throwable e) {
            setThrowable(e);
        }
    }
184676
public void persistRedeliveredCount(int redeliveredCount) throws SevereMessageStoreException
    {
        Membership thisItemLink = _getMembership();
        if (null == thisItemLink)
        {
            throw new NotInMessageStore();
        }
        thisItemLink.persistRedeliveredCount(redeliveredCount);
    }
414514
public function setMaxCount(int $maxCount): StreamMetadataBuilder
    {
        if ($maxCount < 0) {
            throw new InvalidArgumentException('Max count must be positive');
        }

        $this->maxCount = $maxCount;

        return $this;
    }
711115
@Override
    public void setMaxBatchSize(final Integer maxBatchSize) {
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr.debug(this, TRACE, "setMaxBatchSize", maxBatchSize);
        }
        _maxBatchSize = maxBatchSize;
    }
11427
public void setMaxConcurrentThreadCount(String pMaxConcurrentThreadCount) {
        if (!StringUtil.isEmpty(pMaxConcurrentThreadCount)) {
            try {
                maxConcurrentThreadCount = Integer.parseInt(pMaxConcurrentThreadCount);
            }
            catch (NumberFormatException nfe) {
                // Use default
            }
        }
    }
1348330
public synchronized void accept(CacheVisitor<K,V> visitor) {
        expungeExpiredEntries();
        Map<K,V> cached = getCachedEntries();

        visitor.visit(cached);
    }
674797
public boolean isVisited(int from, int upTo) {
    if (checkBounds(from) && checkBounds(upTo - 1)) {
      // perform the visit check
      //
      for (int i = from; i < upTo; i++) {
        if (ONE == this.registry[i]) {
          return true;
        }
      }
      return false;
    }
    else {
      throw new RuntimeException("The location " + from + "," + upTo + " out of bounds [0,"
          + (this.registry.length - 1) + "]");
    }
  }
222683
public void markResourceAsVisitedBy(CmsObject cms, String resourcePath, CmsUser user) throws CmsException {

        CmsResource resource = cms.readResource(resourcePath, CmsResourceFilter.ALL);
        markResourceAsVisitedBy(cms, resource, user);
    }