com.hazelcast.util.concurrent

## Class NoOpIdleStrategy

- java.lang.Object
- - com.hazelcast.util.concurrent.NoOpIdleStrategy

- All Implemented Interfaces:
    IdleStrategy

      public class NoOpIdleStrategy
      extends Object
      implements IdleStrategy

  Low-latency idle strategy to be employed in loops that do significant work on each iteration such that any work in the idle strategy would be wasteful.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NoOpIdleStrategy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `idle(long n)` Perform current idle strategy's step n.

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

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

- - ### Constructor Detail

    - #### NoOpIdleStrategy

          public NoOpIdleStrategy()

  - ### Method Detail

    - #### idle

          public boolean idle(long n)

      Description copied from interface: `IdleStrategy`
      Perform current idle strategy's step n.
      Specified by:
        `idle` in interface `IdleStrategy`
      Parameters:
        `n` - number of times this method has been previously called with no intervening work done.
      Returns:
        whether the strategy has reached the longest pause time.

Copyright © 2020. All rights reserved.