Interface Sleeper

All Superinterfaces:
Serializable
All Known Implementing Classes:
ObjectWaitSleeper, ThreadWaitSleeper

public interface Sleeper extends Serializable
Strategy interface for backoff policies to delegate the pausing of execution.
Author:
Dave Syer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sleep(long backOffPeriod)
    Pause for the specified period using whatever means available.
  • Method Details

    • sleep

      void sleep(long backOffPeriod) throws InterruptedException
      Pause for the specified period using whatever means available.
      Parameters:
      backOffPeriod - the backoff period
      Throws:
      InterruptedException - the exception when interrupted