Class ExponentialBackoff

java.lang.Object
net.minecraft.client.util.ExponentialBackoff
All Implemented Interfaces:
Runnable

@Environment(CLIENT) public class ExponentialBackoff extends Object implements Runnable
An implementation of an exponential backoff algorithm with the upper limit on delay. The implementation does not require a specific time unit (such as ticks, seconds, etc); the only requirement is that run() method is called periodically.
Mappings:
Namespace Name
official edi
intermediary net/minecraft/class_7526
named net/minecraft/client/util/ExponentialBackoff
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ledi;a:Lorg/slf4j/Logger;
      intermediary field_39487 Lnet/minecraft/class_7526;field_39487:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/util/ExponentialBackoff;LOGGER:Lorg/slf4j/Logger;
    • runner

      private final ExponentialBackoff.Runner runner
      Mappings:
      Namespace Name Mixin selector
      official b Ledi;b:Ledi$a;
      intermediary field_39488 Lnet/minecraft/class_7526;field_39488:Lnet/minecraft/class_7526$class_7527;
      named runner Lnet/minecraft/client/util/ExponentialBackoff;runner:Lnet/minecraft/client/util/ExponentialBackoff$Runner;
    • maxSkippableRuns

      private final int maxSkippableRuns
      Mappings:
      Namespace Name Mixin selector
      official c Ledi;c:I
      intermediary field_39489 Lnet/minecraft/class_7526;field_39489:I
      named maxSkippableRuns Lnet/minecraft/client/util/ExponentialBackoff;maxSkippableRuns:I
    • runsToSkip

      private int runsToSkip
      Mappings:
      Namespace Name Mixin selector
      official d Ledi;d:I
      intermediary field_39490 Lnet/minecraft/class_7526;field_39490:I
      named runsToSkip Lnet/minecraft/client/util/ExponentialBackoff;runsToSkip:I
    • skippedRuns

      private int skippedRuns
      Mappings:
      Namespace Name Mixin selector
      official e Ledi;e:I
      intermediary field_39491 Lnet/minecraft/class_7526;field_39491:I
      named skippedRuns Lnet/minecraft/client/util/ExponentialBackoff;skippedRuns:I
  • Constructor Details

    • ExponentialBackoff

      public ExponentialBackoff(ExponentialBackoff.Runner runner, int maxSkippableRuns)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ledi;<init>(Ledi$a;I)V
      intermediary <init> Lnet/minecraft/class_7526;<init>(Lnet/minecraft/class_7526$class_7527;I)V
      named <init> Lnet/minecraft/client/util/ExponentialBackoff;<init>(Lnet/minecraft/client/util/ExponentialBackoff$Runner;I)V
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable