Examples of FibonacciNumberSequence


Examples of org.sonatype.nexus.util.sequence.FibonacciNumberSequence

          if (!(this.remoteStatusRetainTimeSequence instanceof FibonacciNumberSequence)) {
            // take the timeout * 2 as initial step
            long initialStep = getRemoteConnectionSettings().getConnectionTimeout() * 2L;

            // make it a fibonacci one
            this.remoteStatusRetainTimeSequence = new FibonacciNumberSequence(initialStep);

            // make it step one
            this.remoteStatusRetainTimeSequence.next();

            // ping the monitor thread
View Full Code Here

Examples of org.sonatype.nexus.util.sequence.FibonacciNumberSequence

  // ==

  protected int performAndMeasureActualTps(final int wantedTps, final NumberSequence loadChange) {
    fixedRateWalkerThrottleController =
        new FixedRateWalkerThrottleController(wantedTps, new FibonacciNumberSequence(1));
    fixedRateWalkerThrottleController.setSliceSize(1);

    final TestThrottleInfo info = new TestThrottleInfo();
    final WalkerContext context = Mockito.mock(WalkerContext.class);
    // sleeptime starts oscillating after the 10th iteration, give some extra iterations to bring down the average
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.