org.apache.ignite.cache.store.cassandra.common

## Class RandomSleeper

- java.lang.Object
- - org.apache.ignite.cache.store.cassandra.common.RandomSleeper

-     public class RandomSleeper
      extends Object

  Provides sleep method with randomly selected sleep time from specified range and incrementally shifts sleep time range for each next sleep attempt

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RandomSleeper(int min, int max, int incr, IgniteLogger log)` Creates sleeper instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getSleepSummary()` Returns summary sleep time.
    `void` | `sleep()` Sleeps

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RandomSleeper

          public RandomSleeper(int min,
                               int max,
                               int incr,
                               IgniteLogger log)

      Creates sleeper instance.
      Parameters:
        `min` - minimum sleep time (in milliseconds)
        `max` - maximum sleep time (in milliseconds)
        `incr` - time range shift increment (in milliseconds)
        `log` - Instance of the Ignite logger.

  - ### Method Detail

    - #### sleep

          public void sleep()

      Sleeps

    - #### getSleepSummary

          public int getSleepSummary()

      Returns summary sleep time.
      Returns:
        Summary sleep time in milliseconds.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.13.0
Release Date | : April 20 2022