code: private void initializeSweepInterval(long sweepInterval)
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && (tc.isEntryEnabled() || tcOOM.isEntryEnabled()))
              Tr.entry(tc.isEntryEnabled() ? tc : tcOOM,
                       "initializeSweepInterval : " + ivCache.getName() + " preferred size = " +
                                       ivPreferredMaxSize + ", sweep = " + sweepInterval);
  
          ivSweepInterval = sweepInterval;
  
          // Adjust the discard threshold according to the sweepInterval.
          // The discard threshold is a value between 2 and 20.              d112258
          if ((ivSweepInterval * ivDiscardThreshold) > MAX_THRESHOLD_MULTIPLIER)
          {
              ivDiscardThreshold = (MAX_THRESHOLD_MULTIPLIER / ivSweepInterval);
              if (ivDiscardThreshold < 2)
                  ivDiscardThreshold = 2;
          }
  
          // Determine the upper and lower bounds for the discard threshold for
          // dynamic tuning of the eviction strategy. The max threshold will allow
          // objects to age for up to 1 minute (MAX_THRESHOLD_MULTIPLIER), and
          // the min threshold requires that objects age for at least 9 seconds
          // (MIN_THRESHOLD_MULTIPLIER).                                     d112258
          ivMaxDiscardThreshold = ivDiscardThreshold;
          ivMinDiscardThreshold = (MIN_THRESHOLD_MULTIPLIER / ivSweepInterval);
          if (ivMinDiscardThreshold < 2)
              ivMinDiscardThreshold = 2;
  
          if (isTraceOn && (tc.isEntryEnabled() || tcOOM.isEntryEnabled()))
              Tr.exit(tc.isEntryEnabled() ? tc : tcOOM,
                      "initializeSweepInterval : " + ivCache.getName() + " preferred size = "
                                      + ivPreferredMaxSize + ", sweep = " + ivSweepInterval +
                                      ", threshold = " + ivDiscardThreshold + ", buffer = " +
                                      ivSoftLimitBuffer);
      }
docs: Initialize all of the intervals that are derived from the configurable
  sweep interval. Can be called at any time during runtime.
  
  @param sweepInterval the interval between sweeps that this eviction
  strategy uses