Interface BackoffPolicy

All Known Implementing Classes:
ExponentialBackoffPolicy

public interface BackoffPolicy
Determines how long to wait before doing some action (typically a retry, or a reconnect).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the number of nanoseconds to wait.
  • Method Details

    • nextBackoffNanos

      long nextBackoffNanos()
      Returns the number of nanoseconds to wait.